当前位置:网站首页>Navicat远程连接数据库 出现 1130- Host xxx is not allowed to connect to this MySQL server错误
Navicat远程连接数据库 出现 1130- Host xxx is not allowed to connect to this MySQL server错误
2022-04-23 12:57:00 【@潇然】
解决: Navicat远程连接数据库出现 1130- Host xxx is not allowed to connect to this MySQL server
问题描述
使用Navicat连接远程数据库时出现1130错误,然后又尝试用SSH用户名+密码进行连接,还是无法连接。后来发现是因为服务器上的Mysql数据库root用户未开启权限。
解决办法
进入数据库中
mysql -u root -p
切换到mysql
use mysql;
设置root用户的连接权限
%的意思是允许所有IP连接数据库
update user set host = '%' where user ='root';
刷新权限
flush privileges;
完成上述步骤,再用Navicat连接,就可以成功进入了。
以上。
版权声明
本文为[@潇然]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_42774234/article/details/124337976
边栏推荐
猜你喜欢
【每日一题】棋盘问题
SSL certificate refund instructions
Labels and paths
STM32 project transplantation: transplantation between chip projects of different models: Ze to C8
Record Alibaba cloud server mining program processing
Packet capturing and sorting -- TCP protocol [8]
Resolve disagrees about version of symbol device_ create
[csnote] ER diagram
Fashion cloud learning - input attribute summary
Trier les principales utilisations de l'Agent IP réseau
随机推荐
BUUCTF WEB [BJDCTF2020]ZJCTF,不过如此
Free and open source agricultural Internet of things cloud platform (version: 3.0.1)
BUUCTF WEB [BJDCTF2020]The mystery of ip
解锁OpenHarmony技术日!年度盛会,即将揭幕!
精度、速度完美平衡,最新图像分割SOTA模型重磅发布!!!
Buuctf Web [gxyctf2019] no dolls
Zero trust in network information security
Customize classloader and implement hot deployment - use loadclass
Zigbee之CC2530最小系统及寄存器配置(1)
Teach you to quickly develop a werewolf killing wechat applet (with source code)
C#,二维贝塞尔拟合曲线(Bézier Curve)参数点的计算代码
V-model binding value in El select, data echo only displays value, not label
Record a website for querying compatibility, string Replaceall() compatibility error
No idle servers? Import OVF image to quickly experience smartx super fusion community version
数据库中的日期时间类型
Learning materials
Introduction to metalama 4 Use fabric to manipulate items or namespaces
软件测试周刊(第68期):解决棘手问题的最上乘方法是:静观其变,顺水推舟。
SSL certificate refund instructions
Introducing vant components on demand