当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
[QNX Hypervisor 2.2用户手册]9.17 tolerance
数学建模笔记:TOPSIS方法(优劣解距离法)和熵权法修正
【HCIE】NO.30 OSPFv3的基本配置
力扣 2127. 参加会议的最多员工数 拓扑剪枝与2360补充
golang环境详细安装、配置
MySQL 5.7 upgrade to 8.0 detailed process
SQL数据表增加列
公司不重视软件测试,新来的阿里P8给我们撰写了测试用例编写规范
[QNX Hypervisor 2.2用户手册]9.20 vdev
[Digital IC hand-tear code] Verilog fixed priority arbiter | topic | principle | design | simulation
[QNX Hypervisor 2.2用户手册]9.18 unsupported
navicat无法连接mysql超详细处理方法
Android studio connects to MySQL and completes simple login and registration functions
"Digital reconstruction of the system, getting the CEO is the first step"
prisma使用mongodb副本集群报错引发的一些列问题
在 .NET MAUI 中如何更好地自定义控件
面试测试工程师一般会问什么?测试主管告诉你
The original question on the two sides of the automatic test of the byte beating (arranged according to the recording) is real and effective 26
golang泛型
UE4 蓝图实现AI随机移动









