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

解决mysql 远程链接问题

时间:2016-06-15 19:08:03      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:

grant all privileges on *.* to ‘root‘@‘192.168.2.204‘ identified by ‘123456‘ with grant option;
flush privileges;

可直接用下面的,上面的执行之后,仅本机可以用ip进行链接,还是不能远程链接,下面的就ok了。

GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘123456‘ WITH GRANT OPTION; 

flush privileges;

解决mysql 远程链接问题

标签:

原文地址:http://www.cnblogs.com/hcfan/p/5588331.html

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