ERROR 1142 (42000):UPDATE command denied to user ''@'loca_MySQL
程序员文章站
2024-02-11 11:06:40
...
bitsCN.com
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'错误 解决方法如下:
进入mysql/bin目录,执行mysqladmin -uroot password 密码
之后,再进mysql -uroot -p 回车后,显示 passwd: ok! bitsCN.com
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'错误 解决方法如下:
进入mysql/bin目录,执行mysqladmin -uroot password 密码
之后,再进mysql -uroot -p 回车后,显示 passwd: ok! bitsCN.com