远程访问Ubuntu下的MySQL数据库

2014-11-24 17:29:46 · 作者: · 浏览: 0

修改/etc/mysql/my.cnf


注释掉这句话 bind-address = 127.0.0.1


给某一台主机访问数据库的权限


grant all privileges on weguan.* to test@202.101.222.111 identified by 'password'


注意:
1.202.101.222.111是欲连接到此mysql数据库的客户端的IP地址。


2.password就是mysql数据库test用户的password,根据实际情况需要修改。


Ubuntu安装的mysql表名是大小写相关的。要使Ubuntu的mysql忽略表名大小写,可以在my.cnf的[mysqld]下添加


lower_case_table_names=1