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

mysql远程连接 Host * is not allowed to connect to this MySQL server

时间:2017-07-20 01:04:50      阅读:202      评论:0      收藏:0      [点我收藏+]

标签:名称   nbsp   rom   mysql远程连接   local   mysql   oca   select   微软雅黑   

在本机登入mysql后,更改"mysql"数据库里的"user"表里的"host"项,从"localhost"改为‘%‘

代码如下         

mysql>

mysql>use mysql;

mysql>select ‘host‘ from user where user=‘root‘;

#查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称)

mysql远程连接 Host * is not allowed to connect to this MySQL server

标签:名称   nbsp   rom   mysql远程连接   local   mysql   oca   select   微软雅黑   

原文地址:http://www.cnblogs.com/YuTaiYin/p/7208633.html

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