当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
canvas 像素操作(图片像素操作)
Detailed explanation of the software testing process (mind map) of the first-tier manufacturers
牛客-TOP101-BM41
Navicat new database
apisix-Getting Started
[网鼎杯 2020 青龙组]singal
元宇宙:活在未来
mysql 8.0.28版本安装配置方法图文教程
合作的小伙伴,缺乏主人翁(owner)意识,好苦恼
mysql 存储过程详解
Go语言中定时任务库Cron使用详解
迅为RK3568开发板编译Buildroot-全自动编译
100 latest software testing interview questions in 2022, summary of common interview questions and answers
[QNX Hypervisor 2.2用户手册]9.20 vdev
UE4 局域网联机案例
2022年7月学习计划完成情况
编译失败:HBuilderX 安装目录不能包括 ( 等特殊字符 (HBuilderX,uni-app报错)
ES6——class类实现继承
MySQL 8.0.29 解压版安装教程(亲测有效)
interrupt()、interrupted()和isInterrupted()你真的懂了吗








