Jump to content


Need help creating username in database


3 replies to this topic

#1 Mooey

    Retired P2L Staff

  • Members
  • PipPipPip
  • 585 posts
  • Gender:Male
  • Location:UK
  • Interests:http://500px.com/mikeholman
    http://holmanmedia.net

Posted 15 March 2006 - 10:17 AM

Right, because my workplace host is crud i cant add a user name to a database via Cpanel. On my host its dead easy.

I've created the database (dbjoomla), rather than add a user name with a password easy, you have to click a link then it goes to (phpMyAdmin).

I'm stuck, I dont know how to add a username. Need to create one before I can carry on with the installation of Joomla.

Help PLEASE!!!

Posted Image

#2 coolaid

    P2L Jedi Master

  • Members
  • PipPipPipPip
  • 1,435 posts
  • Gender:Male
  • Interests:i wonder..

Posted 15 March 2006 - 11:45 AM

well you'd have to create a table named something like 'users' with the AT LEAST the two columns 'name' and 'password'

#3 Stu

    Retired P2L Staff

  • Publishing Betazoids
  • PipPipPipPip
  • 1,761 posts
  • Gender:Male

Posted 15 March 2006 - 12:45 PM

i think he means his host does not allow him to add an actual username to the database in order to access it.

if im right in thinking the abovve hopefully these 3 links will help (more specifically the last two):

http://dev.mysql.com...ding-users.html
http://dev.mysql.com...reate-user.html
http://dev.mysql.com...0/en/grant.html

i think you would do a query something like
INSERT INTO mysql.user (user, host, password) VALUES ('user', 'localhost', PASSWORD('pass'));

GRANT ALL PRIVELAGES ON database TO user@localhost IDENTIFIED BY 'pass';

FLUSH PRIVILEGES;

i think you would skip the first bit if you already have an actual user created but just not added to the database too...

feel welcome to wait for someone else to answer though, cus i have never done it before and i dont know if its right ^_^

Edited by Stu, 15 March 2006 - 12:54 PM.


#4 Mooey

    Retired P2L Staff

  • Members
  • PipPipPip
  • 585 posts
  • Gender:Male
  • Location:UK
  • Interests:http://500px.com/mikeholman
    http://holmanmedia.net

Posted 16 March 2006 - 04:31 AM

Thanks for the replys lads, this database lark is giving me grey hairs :P

Stu - cheers for the links





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users