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]