mysql远程连接 Host * is not allowed to connect to this MySQL server问题解决方法
来源:互联网 发布:淘宝宝贝评价没有了 编辑:程序博客网 时间:2024/05/01 06:17
localhost改成%
进入mysql的BIN目录
代码如下复制代码mysql -u root -p
mysql>use mysql;
mysql>update user set host =’%'where user =’root’;
mysql>flush privileges;
具体分析
1、在本机登入mysql后,更改“mysql”数据库里的“user”表里的“host”项,从”localhost”改为'%'。
代码如下复制代码mysql>mysql>use mysql;
mysql>select 'host' from user where user='root';
#查看mysql库中的user表的host值(即可进行连接访问的主机/IP名称)
代码如下复制代码mysql>update user set host = '%' where user ='root';#修改host值(以通配符%的内容增加主机/IP地址,当然也可以直接增加某个特定IP地址,如果执行update语句时出现ERROR 1062 (23000): Duplicate entry '%-root' for key 'PRIMARY' 错误,需要select host from user where user = 'root';
查看一下host是否已经有了%这个值,如果有了直接执行下面的flush privileges;即可)
mysql>flush privileges;
mysql>select host,user from user where user='root';
mysql>quit
0 0
- mysql远程连接 Host * is not allowed to connect to this MySQL server问题解决方法
- Mysql 远程连接错误:1130-host IP is not allowed to connect to this MySql server
- 远程连接MYSQL提示Host is not allowed to connect to this MySQL server
- 远程连接MYSQL提示Host is not allowed to connect to this MySQL server(...
- 远程连接MYSQL 错:1130-host ... is not allowed to connect to this MySql server
- 远程连接MYSQL提示Host is not allowed to connect to this MySQL server
- 远程连接MYSQL提示Host is not allowed to connect to this MySQL server(转)
- 远程连接mysql 出现: 1130: Host is not allowed to connect to this MySQL server 解决
- mysql远程连接 Host * is not allowed to connect to this MySQL server
- mysql远程连接错误1130-host ... is not allowed to connect to this MySql server
- MySQL远程连接:Host 'x' is not allowed to connect to this MySQL server
- mysql远程连接 Host * is not allowed to connect to this MySQL server
- host ... is not allowed to connect to this MySql server 开放mysql远程连接
- mysql远程连接 Host * is not allowed to connect to this MySQL server
- 远程连接MYSQL提示Host is not allowed to connect to this MySQL server
- mysql远程连接报错: Host * is not allowed to connect to this MySQL server,解决方法
- MySQL远程连接报错:Host is not allowed to connect to this MySQL server
- mysql远程连接 Host * is not allowed to connect to this MySQL server
- C++——运算符重载(四)
- PMI-ACP敏捷认证:敏捷开发的6个实战经验
- Spring+MyBatis多数据源配置实现
- HDU 1323 Perfection (水题)
- 2015-0909-osg学习历程8
- mysql远程连接 Host * is not allowed to connect to this MySQL server问题解决方法
- iOS,关于真机tableViewCell上面button响应事件,不同版本崩溃问题解决
- Thrift学习笔记
- Linux初学者的简易脚本----自动配IP
- .net后台输出js关闭当前浏览器窗口
- linux多线程学习
- iOS GCD同步队列和同步任务 堵塞和死锁
- [leetcode-214]Shortest Palindrome(java)
- Gallery与ImageSwitcher的图片显示