Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92409270
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: Mysql/postgreSQL

2008-04-05 09:41:02

作者: ginceo  出自:
需要打开用户权限和mysql的本机绑定

1、在命令行底下打开用户权限:grant all privileges on drupal.* to 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重启即可远程访问。
阅读(400) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~