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
找到bind-address = 127.0.0.1这一行
改为bind-address = 0.0.0.0即可
本文详细介绍了在Ubuntu Server环境下安装了MySQL5.5数据库后,如何通过修改配置文件和授权操作解决在Windows下使用Navicat for MySQL连接时出现的'Can't connect to mysql server'错误。具体步骤包括授权root用户并修改my.conf文件中的bind-address参数。

907

被折叠的 条评论
为什么被折叠?



