LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 699|回复: 3

用apt安装mysql-server后的怪事,求帮

[复制链接]
发表于 2006-12-15 11:26:11 | 显示全部楼层 |阅读模式
原来,mysql的默认配置为了增强安全性,禁止了非本机的访问,在ubuntu中是这样,debian中也是。禁止的方式以前是在my.cnf中有一句

skip-network
现在则变成了:

# 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
就是只监听本机地址。所以,如果要开放局域网内的访问,需要注释掉这一句,或者改成:

bind-address = 0.0.0.0


我注释了bind-address = 0.0.0.0 这行,并restart了mysql进程,但是在windows下还是联接不上3306呀,头大的很


telnet 192.168.2.11 3306
EHost '192.168.2.10' is not allowed to connect to this MySQL server

Connection to host lost.

C:\Documents and Settings\x>
发表于 2006-12-15 12:26:03 | 显示全部楼层
不是在那改  是在mysql的表里改,或grant
回复 支持 反对

使用道具 举报

发表于 2006-12-15 12:28:48 | 显示全部楼层
It's not stranger!
You must use grant command to change the user table of the mysql database.
回复 支持 反对

使用道具 举报

发表于 2006-12-15 15:41:28 | 显示全部楼层
能说具体点吗?怎么改?也想学一下
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表