使用navicat连接mysql报10038错时解决方法: 
1.mysql 赋予root权限(进入mysql数据库执行)
 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码 WITH GRANT OPTION;
 FLUSH PRIVILEGES; 
2.编辑my.cnf文件
vi /etc/my.cnf

找到bind-address = 127.0.0.1这一行,改为bind-address = 0.0.0.0,在【mysqld】中加入skip-grant-tables

3.重启mysql

service mysql restart

4.关闭防火墙(由于重启mysql会导致iptables自动打开,所以需关闭)

service iptables stop

相关文章:

  • 2021-04-12
  • 2021-10-16
  • 2022-12-23
  • 2021-08-01
  • 2023-04-03
猜你喜欢
  • 2022-01-30
  • 2021-12-10
  • 2021-04-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案