当前位置:网站首页>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
边栏推荐
- PHP generates JSON to process Chinese
- Use source insight to view and edit source code
- 只是不断地建构平台,不断地收拢流量,并不能够做好产业互联网
- 8 websites that should be known for product development to enhance work experience
- 31. 下一个排列
- Synchronously update the newly added and edited data to the list
- No idle servers? Import OVF image to quickly experience smartx super fusion community version
- Homomorphic encryption technology learning
- Learning materials
- leetcode-791. Custom string sorting
猜你喜欢

V-model binding value in El select, data echo only displays value, not label

SSM框架系列——注解开发day2-2

风尚云网学习-input属性总结

Plato farm - a game of farm metauniverse with Plato as the goal

Recovering data with MySQL binlog

云原生KubeSphere部署Redis
![leetcode:437. Path sum III [DFS selected or not selected?]](/img/e7/d0983a3251dfaf2cf33b56a12ac149.png)
leetcode:437. Path sum III [DFS selected or not selected?]

Pytorch: a pit about the implementation of gradreverselayer

31. Next arrangement

【蓝桥杯】4月17日省赛刷题训练(前3道题)
随机推荐
网站首页文件被攻击篡改的形式有哪些
实现一个盒子在父盒子中水平垂直居中的几种“姿势”
Realize several "Postures" in which a box is horizontally and vertically centered in the parent box
About the 'enum' enumeration type and structure.
梳理網絡IP代理的幾大用途
Kubernetes 入門教程
The accuracy and speed are perfectly balanced, and the latest image segmentation SOTA model is released!!!
甲辰篇 創世紀《「內元宇宙」聯載》
box-sizing
风尚云网学习-h5的input:type属性的image属性
BUUCTF WEB [BJDCTF2020]The mystery of ip
在线计算过往日期天数,计算活了多少天
Use compressorjs to compress pictures, optimize functions, and compress pictures in all formats
Keyword interpretation and some APIs in RT thread
产品开发都应该知道的8个网站,增强工作体验
精度、速度完美平衡,最新图像分割SOTA模型重磅发布!!!
Teach you to quickly develop a werewolf killing wechat applet (with source code)
CVPR 2022&NTIRE 2022|首个用于高光谱图像重建的 Transformer
Wonderful review | the sixth issue of "source" - open source economy and industrial investment
解决disagrees about version of symbol device_create