当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
MySQL 8.0.29 set and modify the default password
Mysql实现乐观锁
行测不会概念
What do interview test engineers usually ask?The test supervisor tells you
Go语言之interface详解
ELK日志分析系统
UE4 创建开始游戏界面UI
H5如何实现唤起APP
Detailed explanation of AMQP protocol
Jmeter使用多线程测试web接口
Redis常见题型
数学建模笔记:TOPSIS方法(优劣解距离法)和熵权法修正
【语义分割】FCN
Matlab论文插图绘制模板第41期—气泡图(bubblechart)
golang的time包:时间间隔格式化和秒、毫秒、纳秒等时间戳格式输出的方法
MobaXsterm如何使用
MySQL 多表关联一对多查询实现取最新一条数据
07-传统的生产者消费者问题、防止虚假唤醒
Navicat new database
Matlab学习第二天