Client does not support authentication protocol requested by server; consider upgrading MySQL client
找了很久的问题,原因是没有配置数据库初始密码,在mysql命令行执行以下命令即可
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';
SELECT plugin FROM mysql.user WHERE User = 'root';