"Access denied for user 'root@localhost' 试一下你的mysql是不是用任何密码都可以登录,如果是的话这里 https://blog.csdn.net/light_breeze/article/details/82070222 花了三小时...竟然是因为这个