1. 程式人生 > >Mysql 8.0 | #08004Client does not support authentication protocol requested by server

Mysql 8.0 | #08004Client does not support authentication protocol requested by server

完整報錯

#08004Client does not support authentication protocol requested by server; consider upgrading MySQL client

解決方法

Using the old mysql_native_password works:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YourRootPassword';
-- then
FLUSH PRIVILEGES;
This is because caching_sha2_password is introduced in MySQL 8.0.