Dear All
I just installed MySQL Server 5.5 under Ubuntu 12.10 through repository. When I was trying to change the password, I got following message:
Code:
ll@wenwen:~$ mysqladmin -u root password "newpassword";
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
ll@wenwen:~$
I googled online; it seems the reason I could not change password is because the "mysql" database is lost. So I checked the installed database and got following information:
Code:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| test |
+--------------------+
2 rows in set (0.00 sec)
mysql>
So is the "mysql" database missing? How can I recover it?
Bookmarks