1.mysql的设置

(1)授权
mysql>grant all privileges on *.*  to  'root'@'%'  identified by 'youpassword'  with grant option;
mysql>flush privileges;
(2)修改/etc/mysql/my.conf
找到bind-address = 127.0.0.1这一行
改为bind-address = 0.0.0.0即可

重启mysql

2.防火墙开放端口

服务器的防火墙,需要开启3306端口

 

相关文章:

  • 2021-04-17
  • 2021-08-01
  • 2021-06-25
  • 2021-11-17
  • 2022-12-23
  • 2021-10-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
  • 2021-05-14
相关资源
相似解决方案