cannot log in as root after updating password in user db
Posted: 11. December 2009 18:27
I recently installed PHP and MySql using the xampp download.
The book I was trying to teach myself with stressed having the root user password protected so I entered the following:
mysql> update User
set password = 'my password'
where user = 'root';
mysql>flush privileges;
I then exited and tried to log back in as root using the new password
# mysql -u root -p
Enter password: **********
but now get the error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I appreciate any help on this.
Thanks
The book I was trying to teach myself with stressed having the root user password protected so I entered the following:
mysql> update User
set password = 'my password'
where user = 'root';
mysql>flush privileges;
I then exited and tried to log back in as root using the new password
# mysql -u root -p
Enter password: **********
but now get the error:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I appreciate any help on this.
Thanks