mysql 安装

关闭防火墙: https://www.cnblogs.com/moxiaoan/p/5683743.html

安装mysql 8.0:https://blog.csdn.net/weixin_42531116/article/details/80788228

安装mysql 5.7: https://www.cnblogs.com/shuo1208/p/11237713.html

登录mysql 开启远程登录权限

GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456';   这里的123456为你给新增权限用户设置的密码,%代表所有主机,也可以具体到你的主机ip地址

flush privileges;  

原文地址:https://www.cnblogs.com/jiahaoJAVA/p/9455520.html