返回信息流把mysql服务器装在一个机子上,从本机的虚拟机可以访问主机的数据库,从别的机子上访问连接不上,提示Can not connect to MySQL server on'120.38.21.25',老是找不到原因啊
这是一条镜像帖。来源:北邮人论坛 / database / #5568同步于 2011/5/10
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Database机器人发帖
求助:mysql远程连接不上
lic
2011/5/10镜像同步3 回复
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
windows下,配置my.ini
linux下
# /etc/my.cnf to set global options,
或查找locate my.cnf
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
#bind-address = 127.0.0.1
【 在 zzcc (Binux <足兆叉虫>) 的大作中提到: 】
: /etc/mysql/my.cfg(大概是这个名字把)
: 查找bind,修改为0.0.0.0
http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html
【 在 doubleKO (九头鸟龙) 的大作中提到: 】
: windows下,配置my.ini
: linux下
: # /etc/my.cnf to set global options,
: ...................