MySQL允许远程用户登录

mysql>use mysql; 

mysql>update user set host = ‘%‘ where user = ‘root‘;

FLUSH PRIVILEGES