当前位置:网站首页>Navicat cannot connect to mysql super detailed processing method
Navicat cannot connect to mysql super detailed processing method
2022-07-30 06:05:00 【m0_67393295】
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
边栏推荐
猜你喜欢
随机推荐
Teach you to completely uninstall MySQL
MySQL索引从入门到深入学习
JVM之GC 调优工具 Arthas 实战使用(二)
Machine Learning - Gradient Descent Optimization - C language implementation
MySQL的存储过程
2022年SQL经典面试题总结(带解析)
postman 请求 post 调用 传 复合 json数据
Countdown (Source: Google Kickstart2020 Round C Problem A) (DAY 88)
curl (7) Failed connect to localhost8080; Connection refused
The Golden Circle Rule: Deep Thinking Methods for Successful People
[Mysql] DATEDIFF函数
Programmers care guide, give yourself a chance to make the occasional relaxation of body and mind
mysql 中 in 的用法
Path dependence: the poor hard science to counter attack breakthrough
MySQL 有这一篇就够(呕心狂敲37k字,只为博君一点赞!!!)
75. 颜色分类
Programmers make money and practice, teach you how to do paid courses, self-media, paid articles and paid technical courses to make money
PyCharm usage tutorial (more detailed, picture + text)
成绩排序(华中科技大学考研机试题)(DAY 87)
MYSQL-InnoDB的线程模型