狼爱上狸

我胡汉三又回来了

ubuntu mysql远程访问

在ubuntu7.10中mysql安装,默认是只能本机访问的,需要打开用户权限和mysql的本机绑定
1、在命令行底下打开用户权限:grant all privileges on drupal.* to user@192.168.1.80 identified by 'user-password';
   在管理员界面可以通过用户管理add host->any host来添加访问权限(root用户默认只能访问本机,新添加的用户可远程)
2、取消mysql本机绑定:
编辑/etc/mysql/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
将”bind-address = 127.0.0.1“注释
sudo /etc/init.d/mysql restart重启即可远程访问

linkfrom:http://hi.baidu.com/iminger/blog/item/19e0c9139a052bd4f7039e50.html

posted on 2008-04-27 08:01 狼爱上狸 阅读(3309) 评论(1)  编辑  收藏 所属分类: MYSQL

评论

# re: ubuntu mysql远程访问[未登录] 2009-03-25 14:07 u

管用,thx  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: