MySQL Forums
Forum List  »  Newbie

Re: Alternative to "mysql -u root"?
Posted by: Umesh Shastry
Date: July 15, 2005 08:34AM

Hi!!

Its for everyone.. for localhost you need to replace % with localhost or 127.0.0.1..

Grant statment should be ..

mysql>GRANT ALL ON *.* TO ''@'localhost';

Check out the user table(this should be in mysql database)..

update the host column to 'localhost'... for the user ''..

Your query should be...

mysql>UPDATE user SET Host='localhost' where user='';
mysql>FLUSH PRIVILEGES;

Regards,
Umesh Shastry
http://www.blogger.com/profile/02551756983528645221

Options: ReplyQuote


Subject
Written By
Posted
Re: Alternative to "mysql -u root"?
July 15, 2005 08:34AM


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.