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

myysql 不能远程访问的解决办法

时间:2017-02-22 12:54:46      阅读:157      评论:0      收藏:0      [点我收藏+]

标签:set   cal   ide   localhost   bsp   命令   navicat   解决   ges   

1.通过navicat或者命令行,将user表中原来host=localhost的改为host=%

命令行方式:

mysql> update user set host = ‘%‘ where host= ‘localhost‘;

2.授权访问给root用户

 mysql>grant all privileges on *.* to ‘root‘@‘%‘ identified by ‘password‘ with grant option;

3.刷新mysql的权限配置

mysql> flush privileges;

myysql 不能远程访问的解决办法

标签:set   cal   ide   localhost   bsp   命令   navicat   解决   ges   

原文地址:http://www.cnblogs.com/gpdm/p/6427999.html

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