设置root用户可以远程连接

use mysql;

update user set host = '%' where user = 'root';

FLUSH PRIVILEGES;
05-17 20:34