Access denied for user 'root'@ fix success 100%

0

Mặc định Mysql sẽ dùng giao thức auth_socket plugin.
1. set root user để thay đổi sang mysql_native_password

mở terminal gõ lần lượt các lệnh sau: $ sudo mysql -u root -p mysql:~ USE mysql; SELECT User, Host, plugin FROM mysql.user; mysql:~ UPDATE user SET plugin='mysql_native_password' WHERE User='root'; mysql:~ FLUSH PRIVILEGES; mysql:~ exit; $ service mysql restart

Post a Comment

0Comments
Post a Comment (0)