配置my.cnf,让这个Public Key Retrieval is not allowed报错消失
default_authentication_plugin=mysql_native_password
ALTER USER 'your_username'@'your_host' IDENTIFIED WITH mysql_native_password BY 'your_password'; FLUSH PRIVILEGES;
default_authentication_plugin=mysql_native_password
ALTER USER 'your_username'@'your_host' IDENTIFIED WITH mysql_native_password BY 'your_password'; FLUSH PRIVILEGES;