当前位置:网站首页>Navicat cannot connect to mysql super detailed processing method
Navicat cannot connect to mysql super detailed processing method
2022-08-02 06:09:00 【Mmm okay!】

Error reason:
The local IP (xxx.xxx.xxx.xxx) does not have permission to access the remote database.
Solution:
This paragraph is a pure solution, explained below
First open the administrator window, then directly look at the image below 
The code you need to use is placed here for easy access
1.mysql -uroot -p
2.use mysql;
3.update user set host = '%' where user = 'root';
4.flush privileges;
5.select user,host from user;
The following is the detailed process
1. Open the administrator window

2. Log in to the mysql server
Enter this statement: mysql -uroot -p, then enter your password 
3. Use mysql database
Enter this statement: use mysql;

4. Update user permissions
Enter this statement: update user set host = '%' where user = 'root';

5. Refresh permissions, this must have
Enter this statement: flush privileges;

6. Check if it is successful
Enter this statement: select user,host from user;
If root, it corresponds to the percent sign (%)
Congratulations on your success

Let me introduce myself first. The editor graduated from Shanghai Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Alibaba in 2018, until now.I know that most junior and intermediate java engineers want to upgrade their skills, they often need to explore their own growth or sign up to study, but for training institutions, the tuition fee is nearly 10,000 yuan, which is really stressful.Self-learning that is not systematic is very inefficient and lengthy, and it is easy to hit the ceiling and the technology stops.Therefore, I collected a "full set of learning materials for java development" for everyone. The original intention is also very simple. I hope to help friends who want to learn by themselves but don't know where to start, and at the same time reduce everyone's burden.Add the business card below to get a full set of learning materials
边栏推荐
猜你喜欢

21天学习挑战赛安排

【MLT】MLT多媒体框架生产消费架构解析(一)

MySQL 8.0.29 set and modify the default password

100 latest software testing interview questions in 2022, summary of common interview questions and answers

Go语学习笔记 - 处理超时问题 - Context使用 从零开始Go语言

MySQL String Concatenation - Various String Concatenation Practical Cases

ELK log analysis system

UE4 利用Mixamo自动绑骨并导入虚幻4

Jmeter使用多线程测试web接口
软件测试分析流程及输出项包括哪些内容?
随机推荐
编译失败:HBuilderX 安装目录不能包括 ( 等特殊字符 (HBuilderX,uni-app报错)
MySQL 5.7 detailed download, installation and configuration tutorial
Jmeter使用多线程测试web接口
mysql 8.0.28版本安装配置方法图文教程
ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘解决方法
MySQL 的 limit 分页查询及性能问题
MySQL 字符串拼接 - 多种字符串拼接实战案例
MySQL(7)
选择黑盒测试用例设计方法的综合策略方案总结
IOT物联网概述及应用层架构入门篇
MySQL 8.0.29 set and modify the default password
Google 安装印象笔记剪藏插件
ApiPost is really fragrant and powerful, it's time to throw away Postman and Swagger
2022年7月学习计划完成情况
WiFi、蓝牙、zigbee锁与NB、Cat.1锁的区别
数据湖:流计算处理框架Flink概述
MySQL implements sorting according to custom (specified order)
力扣 2127. 参加会议的最多员工数 拓扑剪枝与2360补充
RADIUS 如何提高 WiFi 无线网络安全性?
navicat连接MySQL报错:1045 - Access denied for user ‘root‘@‘localhost‘ (using password YES)