Host Is Not Allowed to Connect to This MySQL Server

Mysql 8 版本 8.0.24

bash 复制代码
[root@VM-0-5-centos ~]# mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 128
Server version: 8.0.24 Source distribution

部署在腾讯云服务器,本地电脑操作python想连接远程MySQL,提示异常

'ip地址' Is Not Allowed to Connect to This MySQL Server

显然是权限不足

创建新的管理员用户或修改root用户以允许从"vScopeServerIP"进行连接

复制代码
> CREATE USER 'newusername'@'*' IDENTIFIED BY 'your_password';
> GRANT ALL PRIVILEGES ON *.* TO 'newusername'@'*' WITH GRANT OPTION;
> CREATE USER 'newusername'@'ip' IDENTIFIED BY 'password';
> GRANT ALL PRIVILEGES ON *.* TO 'newusername'@'ip' WITH GRANT OPTION;
> FLUSH PRIVILEGES;
相关推荐
不爱搬砖的码农3 小时前
windows系统MySQL安装文档
windows·mysql·adb
水银嘻嘻2 天前
adb 连不上真机设备问题汇总
adb
秃头摸鱼侠2 天前
MySQL安装与配置
数据库·mysql·adb
limingade2 天前
ADB识别手机系统弹授权框-如何处理多重弹框叠加和重叠问题
adb·智能手机·android自动授权确认·安卓弹框授权·自动化点击android授权框
FREEDOM_X2 天前
系统调试——ADB 工具
adb
超级小忍3 天前
如何配置 MySQL 允许远程连接
数据库·mysql·adb
betazhou3 天前
mariadb5.5.56在centos7.6环境安装
android·数据库·adb·mariadb·msyql
fengye2071615 天前
板凳-------Mysql cookbook学习 (十)
学习·mysql·adb
进击的CJR6 天前
MySQL 8.0 OCP 英文题库解析(十)
mysql·adb·开闭原则
VirusVIP6 天前
解决:如何在Windows adb使用dmesg | grep检查内核日志
linux·adb