MySQL Forums
Forum List  »  Newbie

Re: Can't seem to create a new user account
Posted by: Rick James
Date: February 25, 2009 09:59PM

http://dev.mysql.com/doc/refman/5.0/en/grant.html

GRANT ALL ON dbname.* TO username@'%' IDENTIFIED BY 'pwd';

The hostname should probably be 'localhost' (instead of '%') if you are connecting locally.

ON *.* gives you access to all dbs.

FLUSH PRIVILEGES (or exiting the session) is necessary for anyone else to see the new/changed GRANT.

Options: ReplyQuote


Subject
Written By
Posted
Re: Can't seem to create a new user account
February 25, 2009 09:59PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.