When I run 'mysqladmin -u root password yourrootsqlpassword', I got this error message:
mysqladmin: connect to server at 'localhost' failedThen I go to MySQL prompt running ' mysql -uroot -pPassword' (Password is replaced by actual password)
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
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:
Expand|Select|Wrap|Line Numbers
- +------+-----------+-------------------------------------------+
- | user | host | password |
- +------+-----------+-------------------------------------------+
- | root | localhost | *FSDFSAFEFSD124521FSDFSFZFD14584FZZFE22F |
- | root | li27-127 | *FSDFSAFEFSD124521FSDFSFZFD14584FZZFE22F |
- | root | 127.0.0.1 | *FSDFSAFEFSD124521FSDFSFZFD14584FZZFE22F |
- +------+-----------+-------------------------------------------+
Should I have only one root user for 'localhost' and delete the other two from the user table?
Thanks!