UPDATE user SET plugin='mysql_native_password' WHERE User='root'; //刷新一下 FLUSH PRIVILEGES; 然后连接的时候密码为空即可