标签:
一、新建用户
CREATE USER ‘username‘@‘host‘ IDENTIFIED BY ‘password‘;
二、编辑权限
GRANT ALL ON *.* TO ‘username‘.‘host‘ IDENDIFIED BY ‘password‘;
#刷新权限
flush privileges;
三、远程访问
1、编辑mysql配置文件
vi /etc/mysql/my.cnf
注释 bind = 127.0.0.1
四、重启服务器
service mysql restart 或者 /etc/init.d/mysql restart
推荐文章
http://www.2cto.com/database/201208/148843.html
http://www.cnblogs.com/zeroone/articles/2298942.html
标签:
原文地址:http://www.cnblogs.com/george-sun/p/4933667.html