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

mysql设置远程访问权限

时间:2016-12-17 23:18:39      阅读:232      评论:0      收藏:0      [点我收藏+]

标签:option   add   ide   flush   用户   root   etc   用户表   mysql用户   

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

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

mysql设置远程访问权限

标签:option   add   ide   flush   用户   root   etc   用户表   mysql用户   

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

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