MySQL不允许远程登录,所以远程登录失败了,解决方法如下:
use mysql;
update user set host = '%' where user = 'root';
执行FLUSH PRIVILEGES;
FLUSH PRIVILEGES;