我试图设置用户root的密码,但我在下面的错误gettin错误,任何想法?'访问被拒绝用户'root'@'localhost'(使用密码:否)'
+----------------------------------------------------------------------------------------------------------------------------------------+
| Grants for [email protected] |
+----------------------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD '*436576511F70A4E3B305E1AB8E209851945D8687' WITH GRANT OPTION |
+----------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)
mysql> exit
Bye
[email protected]:/var/www/rs2# mysqladmin -u root password foo,
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
错误1045在此说明:http://faq.webyog.com/content/23 /18/en/error-no-1045-connection-denied.html – 2012-11-22 07:41:54
[如果使用Debian或Ubuntu,并且想要重置所有内容并连接表。](http://askubuntu.com/q/696964/ 29097) – 2015-11-12 00:24:39