当前位置:网站首页>Navicat connection MySQL error: 1045 - Access denied for user 'root'@'localhost' (using password YES)
Navicat connection MySQL error: 1045 - Access denied for user 'root'@'localhost' (using password YES)
2022-07-30 21:40:00 【Timely movement】
Article Directory
- navicat connection MySQL error: 1045 - Access denied for user 'root'@'localhost' (using password: YES)
- Question:
- Reason:
- Solution:
- If you forget the database password, follow the steps, if not, skip 123
- 1. Find the MySQL configuration file my.ini
- 2. Add skip-grant-tables under **[mysqld] entry to save and exit
- 3. Restart mysql
- 4. Enter MySQL client
- 5. Enter the MySQL database and reset the password
- 6. Delete the content of step 2, then restart
- 7. Test
navicat connection MySQL error: 1045 - Access denied for user 'root'@'localhost' (using password: YES)
Question:
I haven't used the database for a long time. I need to use it for a project recently, but when I use Navicat to connect to the database, I get an error: 1045 - Access denied for user 'root'@'localhost' (using password: YES)

Reason:
Because of the characteristics of MySQL8, the login of the root user is closed, and the new version of the official website has an introduction
Solution:
If you forget the database password, follow the steps, if not, skip 123
This file is in the MySQL installation directory
If you forget where to install it, you can find the installation directory through the command line
"win"+"r" Enter cmd to open the command linemysql -u root -p Enter the password to open the MySQL clientshow variables like "%char% View the installation path
1. Find the MySQL configuration file my.ini

2. Add skip-grant-tables under **[mysqld] entry to save and exit

3. Restart mysql
Enter at the command line
Stop: net stop mysqlStart: net start mysql
4. Enter MySQL client
At this time, enter mysql -u root -p in cmd to log in without a password. When password: appears, press Enter to enter
5. Enter the MySQL database and reset the password
#Enter the databaseuse mysql#reset passwordupdate mysql.user set authentication_string=password('root') where user='root'# refresh the databaseflush mysql#quitquit
6. Delete the content of step 2, then restart
7.Test
Edit connection, enter new password


Let me introduce myself first. The editor graduated from Jiaotong University in 2013. I worked in a small company and went to big factories such as Huawei and OPPO. I joined Ali 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
边栏推荐
- How strict Typescript strict mode?
- The structure of knowledge in the corners of the C language
- 史上超强最常用SQL语句大全
- [Deep Learning] Understanding of Domain Adaptation in Transfer Learning and Introduction of 3 Techniques
- Navicat new database
- IDEA2021.2安装与配置(持续更新)
- 【Network Security Column Directory】--Penguin Column Navigation
- DistSQL 深度解析:打造动态化的分布式数据库
- go慢速入门——函数
- MySQL 灵魂 16 问,你能撑到第几问?
猜你喜欢

navicat无法连接mysql超详细处理方法

MYSQL JDBC图书管理系统

openim支持十万超级大群

MySQL 8.0.29 set and modify the default password

mysql deadlock

Deep Non-Local Kalman Network for VideoCompression Artifact Reduction

Outsourcing worked for three years, it was abolished...

深入浅出富文本编辑器

Why do so many people who teach themselves software testing give up later...

Automatically generate test modules using JUnit4 and JUnitGenerator V2.0 in IDEA
随机推荐
MySQL 8.0.29 decompressed version installation tutorial (valid for personal testing)
QUALITY-GATED CONVOLUTIONAL LSTM FOR ENHANCING COMPRESSED VIDEO
MySQL 8.0.29 设置和修改默认密码
JUC原子类详解
MySQL user authorization
TransGAN代码复现—九天毕昇平台
Typescript 严格模式有多严格?
nVisual网络可视化管理平台功能和价值点
DistSQL 深度解析:打造动态化的分布式数据库
Google Earth Engine ——
一个网络两种用途!南开&哈工程提出TINet,通过细化纹理和边缘,在显著性目标检测和伪装目标检测上实现双SOTA!...
MySQL 5.7 detailed download, installation and configuration tutorial
设备树的引入与体验
Google Earth Engine ——快速实现MODIS影像NDVI动画的在线加载并导出
共用体、共用体与结构体的区别、枚举之C语言犄角旮旯的知识
拿什么来保护数据安全?基层数据安全体系建设待提升
About the error of SFML Rect.inl file
How strict Typescript strict mode?
mysql创建表
小心你的字典和样板代码