学习NO.1 发表于 2015-9-25 00:26:03

ERROR 1142 (42000):UPDATE command denied to user ''@'localhost' for table 'us...

ERROR 1142 (42000):UPDATE command denied to user ''@'localhost' for table 'user的问题

mysql> update mysql.user set password='123456'where User='root';

出现ERROR 1142 (42000): UPDATE command denied to user ''@'localhost' for table 'user'错误   www.2cto.com

解决方法如下:

进入mysql/bin目录,执行mysqladmin -uroot password 密码

之后,再进mysql -uroot -p 回车后,显示 passwd:

ok!

页: [1]
查看完整版本: ERROR 1142 (42000):UPDATE command denied to user ''@'localhost' for table 'us...