当前位置:网站首页>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
边栏推荐
- 2021年软件测试面试题大全
- MySQL 用户授权
- MySQL安装教程
- 大屏UI设计-看这一篇就够了
- CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!)
- P1012 [NOIP1998 Improve Group] Spelling
- MySQL 8.0.29 decompressed version installation tutorial (valid for personal testing)
- 软件测试分析流程及输出项包括哪些内容?
- MySQL multi-table association one-to-many query to get the latest data
- UE4 蓝图实现AI随机移动
猜你喜欢
随机推荐
MySQL导入sql文件的三种方法
一线大厂软件测试流程(思维导图)详解
H5如何实现唤起APP
ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘解决方法
数学建模笔记:TOPSIS方法(优劣解距离法)和熵权法修正
MySQL安装教程
UE4 事件图表不小心拉了很远,找不到一开始创建的节点
Mysql常用命令大全
MP更新操作方式
2022河南萌新联赛第(四)场:郑州轻工业大学 A - ZZULI
AMQP协议详解
MySQL String Concatenation - Various String Concatenation Practical Cases
golang的time包:时间间隔格式化和秒、毫秒、纳秒等时间戳格式输出的方法
prisma使用mongodb副本集群报错引发的一些列问题
mysql 8.0.28版本安装配置方法图文教程
mysql实现按照自定义(指定顺序)排序
转:张五常:比知识更重要的,是思维方式
Navicat报错:1045-Access denied for user [email protected](using passwordYES)
MySQL 8.0.29 解压版安装教程(亲测有效)
在 .NET MAUI 中如何更好地自定义控件






