Access denide for user 'book'@'localhost'(using password:YES)
请问这个问题怎么解决
忘记密码
bin/mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
bin/mysql -u root
use mysql;
UPDATE user SET Password=PASSWORD('123456') where USER='root';
flush privileges;
quit;
权任意机器,使用root账号登录,密码123456
select * from user \G
grant all on . to root@"%" identified by '123456';
flush privileges;
quit;
密码错误啊,你是不是忘记密码了。
数据库用户名或密码错误,导致程序没有权限连接 MySQL 数据库。