pymysql.err.InternalError: (1130, Host '127.0.0.1' is not allowed to connect to this MySQL server)
首先采用[1]:
mysql -u root -p
mysql>use mysql;
mysql>select 'host' from user where user='root';
mysql>update user set host = '%' where user ='root';
mysql>flush privileges;
然后采用
mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> update user set plugin='mysql_native_password' where User='root';
Query OK, 1 row affected (0.07 sec)
Rows matched: 1 Changed: 1 Warnings: 0
[2]提供了简单的使用pymysql的增删改查的操作
[1]https://blog.csdn.net/maybeoneday/article/details/79050153
[2]https://blog.csdn.net/zupzng/article/details/80035412
pymysql.err.InternalError: (1130, Host '127.0.0.1' is not allowed to connect to this MySQL server)相关推荐
- ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server
ERROR 1130: Host xxx.xxx.xxx.xxx is not allowed to connect to this MySQL server 远程连接Mysql服务器的数据库,错误代 ...
- mysql 远程连接--Host'xxx.xxx.xxx.xxx' is not allowed to connect to this MySQL server
怎么解决mysql不允许远程连接的错误 听语音 | 浏览:9277 | 更新:2014-12-18 17:33 | 标签:mysql 1 2 3 4 5 6 7 分步阅读 最近使用Navicat fo ...
- ERROR 1130 (HY000): Host ‘192.168.3.238‘ is not allowed to connect to this MySQL server
问题描述 用IP地址无法连接MySql8.0,报错如下: Host '192.168.3.238' is not allowed to connect to this MySQL server 解决方 ...
- ERROR 1130 (HY000): Host ‘192.168.78.128‘ is not allowed to connect to this MySQL server
项目场景: 在window 下的cmd 中想访问自己虚拟机上的数据库mysql 问题描述: 在输入mysql -h ip -u root -p 然后输入密码 提示ERROR 1130 (HY000): ...
- 远程连接mysql出现ERROR 1130 (HY000): Host ‘xxx.xxx.xxx.xxx’ is not allowed to connect to this MySQL server
问题: 远程连接服务器mysql出现: ERROR 1130 (HY000): Host 'xxx.xxx.xxx.xxx' is not allowed to connect to this MyS ...
- 虚拟机NAT模式下 Host ‘192.168.x.1‘ is not allowed to connect to this MySQL server 问题解决!
目录 环境: 解决方法: 总结: 环境: 本机地址:192.168.1.101 虚拟机地址(NAT模式):192.168.39.138 刚在虚拟机上面安装好MySQL,但是用工具远程连接时候,报错,在 ...
- 拯救报错:Error: ER_HOST_NOT_PRIVILEGED: Host ‘x.x.x.x‘ is not allowed to connect to this MySQL server
问题描述: 使用 Nodejs 连接云服务器 MySQL 数据库,执行 js 文件报错如下: Error: ER_HOST_NOT_PRIVILEGED: Host 'x.x.x.x' is not ...
- 远程mysql出现ERROR 1130 (HY000): Host '172.17.42.1' is not allowed to connect to this MySQL server...
ERROR 1130: Host ***.***.***.*** is not allowed to connect to this MySQL server 说明所连接的用户帐号没有远程连接的权限, ...
- centos7中,mysql连接报错:1130 - Host ‘118.111.111.111’ is not allowed to connect to this MariaDB server...
客户端连接报错 这个问题是因为用户在数据库服务器中的mysql数据库中的user的表中没有权限. 解决步骤 1.连接服务器: mysql -u root -p 2.看当前所有数据库:show data ...
最新文章
- 【FFmpeg】ffmpeg工具源码分析(三):分配过滤器内存(宏GROW_ARRAY)详解
- 谁是全球最顶级AI实验室?
- PCL1.8.1安装和一些小错误
- app让个别界面横屏,其他的为竖屏,解决如下
- 让FX1.1的NotifyIcon支持BalloonTip(2)
- WinRT知识积累1之读xml数据
- unity 克隆_使用Unity开发Portal游戏克隆
- net Core做一个webApi的简单实例
- nginx配置官网yum源
- ICCV2021 香港理工、阿里达摩院提出RealVSR:视频超分任务中的新数据集与损失方案...
- Web服务器与Servlet容器初步认识
- 禁用select下拉方法
- 初中科技节计算机,初中科技节活动方案.doc
- 推荐几个下载英文原版电子书的网站-PDF
- C#将自定义的时间字符串直接转换为UTC世界协调时间
- java scriptrunner,java使用ScriptRunner执行sql文件
- Apache DolphinScheduler 社区呼唤志愿者
- 大学生访谈计算机教师,职业生涯人物访谈报告,教师(共10篇)
- QMidi Pro for mac(好用的卡拉OK播放器)
- 创维Android系统电视去广告,创维电视55E6200酷开系统去开机广告