1、登录mysql授权
mysql -u root -p
输入密码
grant all privileges on *.* to '用户名'@'%' identified by '登录密码' with grant option;
flush privileges;
2、防火墙开放3306端口
1、登录mysql授权
mysql -u root -p
输入密码
grant all privileges on *.* to '用户名'@'%' identified by '登录密码' with grant option;
flush privileges;
2、防火墙开放3306端口