MySQL Forums
Forum List  »  Newbie

Re: Error Number 1045 - I got it to work like this .....
Posted by: Magick Childe
Date: March 09, 2008 07:53AM

glyn Wrote:
-------------------------------------------------------
> sorry folks, this requires running up a command
> window, but it's not too complicated .... anyway
> ...
>
> run up a cmd window - (click start, click run,
> type cmd)
> I then started mysql as root, *WITHOUT* a
> password, as so ....
>
>
>
> mysql -u root (I was suprised this worked, but it
> did)
>
> then at the mysql prompt ...
>
> GRANT ALL ON *.* to root@localhost IDENTIFIED BY
> 'rootpwd';

I have tried this however this is all I got ( no surprise)
C:\Program Files\MySQL\MySQL Server 5\bin>mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: N
O)

Does anyone have a solution for this???? I have already spent the past 3 hours uninstalling and reinstalling and reading through this forum looking for an answer.

Options: ReplyQuote


Subject
Written By
Posted
Re: Error Number 1045 - I got it to work like this .....
March 09, 2008 07:53AM
March 06, 2007 11:22PM
February 20, 2008 06:17AM
August 04, 2009 09:05PM
December 15, 2005 12:56AM
March 03, 2009 11:07PM


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.