ubuntu server下安装了MySQL 5.5数据库,然后在windows下通过Navicat for MySQL连接时,出现 Can't connect to mysql server on xxx.xxx.xxx.xxx(10038) 的问题。

解决方案如下:

1、授权

mysql>grant all privileges on *.*  to  'root'@'%'  identified by 'youpassword'  with grant option;

mysql>flush privileges;

2、修改/etc/mysql/my.conf或者/etc/mysql/my.cnf

找到bind-address = 127.0.0.1这一行

改为bind-address = 0.0.0.0即可

相关文章:

  • 2021-08-19
  • 2021-12-22
  • 2021-11-14
  • 2021-11-11
  • 2021-12-23
  • 2021-06-09
  • 2022-12-23
  • 2021-05-24
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-09-16
  • 2022-12-23
相关资源
相似解决方案