mysql开启远程访问命令

 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '1'  

原文地址:https://www.cnblogs.com/yixinyili/p/11225700.html