I have MySQL installed on my Linux server, I forgot the password, so I went and changed it using the methods I found on the Internet. I have done the following:
/etc/init.d/mysql stop mysqld_safe --skip-grant-tables & mysql --user root mysql SELECT * FROM user; // I checked if I could access the user table or not update user SET password = PASSWORD('new_pass') WHERE user = 'root'; flush privileges; exit
The update request changed the password since it showed me the number of rows affected and Query OK, etc.
Then I restarted mysql
/etc/init.d/mysql stop /etc/init.d/mysql start
Now that I am logged in with a new password
mysql -u root -p new_pass
it still gives me errors "ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: Yes)"
Is there something I am missing?
linux mysql configuration
progrAmmar
source share