1.https://www.cnblogs.com/fnlingnzb-learner/p/5830622.html
2.如果service mysql start启动不了,看下面链接:
https://blog.youkuaiyun.com/weixin_39543992/article/details/78105383
设置mysql允许外部IP连接的解决方法
https://blog.youkuaiyun.com/amao1/article/details/17282433
- mysql>GRANT ALL PRIVILEGES ON . TO ‘root’@’%’ IDENTIFIED BY ‘123456’ WITH GRANT OPTION;
- mysql>flush privileges;