MySQL Forums
Forum List  »  Install & Repo

Re: Error Nr. 1045 Access denied for user 'root'@'localhost' (Using password: NO)
Posted by: Daywan Singh
Date: February 24, 2010 04:54AM

Hi,
Put the following command in a batch file, stop the MySQLd.exe service. Run the batch file with this command:

"C:\Program Files (x86)\MySQL\MySQL Server 5.1\bin\mysqld.exe" --defaults-file="C:\Program Files

(x86)\MySQL\MySQL Server 5.1\my.ini" --init-file=C:\Users\Administrator\downloads\grant_root.txt --console

The text file has this command:

GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'Your password';

Note: GRANT is a command on a single line.

It looks as though when you try to install MySQL on Windows Server 2008, it failed to setup the last task (implementing security - I believe) and the MySQL.Users table is not populated properly.

Regards.

Options: ReplyQuote


Subject
Written By
Posted
August 23, 2010 05:37AM
October 08, 2010 02:25PM
Re: Error Nr. 1045 Access denied for user 'root'@'localhost' (Using password: NO)
February 24, 2010 04:54AM
October 15, 2011 11:03PM


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.