1. 程式人生 > >完美解決MySQL Access denied for user 'root'@'IP地址' 問題

完美解決MySQL Access denied for user 'root'@'IP地址' 問題

1、mysql -u root -p 登陸進MYSQL;

2、執行以下命令:

GRANT ALL PRIVILEGES ON *.* TO 'your name'@'%' IDENTIFIED BY 'your password' WITH GRANT OPTION;
FLUSH PRIVILEGES;

3、exit;