sql 允许远程登录

 grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;

flush privileges;

原文地址:https://www.cnblogs.com/pxfb/p/7672645.html