码迷,mamicode.com
首页 > 数据库 > 详细

mysql授权远程连接

时间:2016-06-02 09:47:28      阅读:207      评论:0      收藏:0      [点我收藏+]

标签:

 查一下你的MYSQL用户表里, 是否允许远程连接

 1、授权
mysql>grant all privileges on *.*  to  ‘root‘@‘%‘  identified by ‘youpassword‘  with grant option;
mysql>flush privileges;
2、修改/etc/mysql/my.conf
找到bind-address = 127.0.0.1这一行
改为bind-address = 0.0.0.0即可

mysql授权远程连接

标签:

原文地址:http://www.cnblogs.com/php-linux/p/5551841.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!