mysql允许远程连接

mysql -uroot -p

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

#                                                                                abc为密码

flush privileges;

原文地址:https://www.cnblogs.com/linmilove/p/11561369.html