允许远程登录

UPDATE mysql.user SET host='%' WHERE user='root';

FLUSH PRIVILEGES;