First of all, I'm not sure if I've set up root password for MySQL server or not. I was following this tutorial
http://www.howtoforge.com/centos-5.1...p-ispconfig-p4 to install mysql on my CentOS 5 server.
When I run 'mysqladmin -u root password yourrootsqlpassword', I got this error message:
Quote:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
|
Then I go to MySQL prompt running ' mysql -uroot -pPassword' (Password is replaced by actual password)
When I am on MySQL prompt, I run
mysql> select user, host, password from user where user='root'; and I saw there are three root users in the user table:
- +------+-----------+-------------------------------------------+
-
| user | host | password |
-
+------+-----------+-------------------------------------------+
-
| root | localhost | *FSDFSAFEFSD124521FSDFSFZFD14584FZZFE22F |
-
| root | li27-127 | *FSDFSAFEFSD124521FSDFSFZFD14584FZZFE22F |
-
| root | 127.0.0.1 | *FSDFSAFEFSD124521FSDFSFZFD14584FZZFE22F |
-
+------+-----------+-------------------------------------------+
From this output, can I say that my root user(s) already has password?
Should I have only one root user for 'localhost' and delete the other two from the user table?
Thanks!