当前位置:网站首页>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 06:06:00 【m0_67393295】
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 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
边栏推荐
- WeChat payment and payment callback
- This article will take you through js to deal with the addition, deletion, modification and inspection of tree structure data
- cmd (command line) to operate or connect to the mysql database, and to create databases and tables
- mysql 中 in 的用法
- CISP-PTE真题演示
- [其他] DS5
- cnpm installation steps
- Introduction to Oracle Patch System and Opatch Tool
- JVM之GC 调优基础知识(一)
- MYSQL-InnoDB的线程模型
猜你喜欢
![[Mysql] DATEDIFF function](/img/cd/7d19e668701cdd5542b6e43f4c2ad4.png)
[Mysql] DATEDIFF function

报错:npm ERR code EPERM

MySQL (2)

postman 请求 post 调用 传 复合 json数据

More fragrant open source projects than Ruoyi in 2022
![[详解C语言]一文带你玩转数组](/img/1b/245fdc7f3711cf794175da7a93b128.png)
[详解C语言]一文带你玩转数组

Different lower_case_table_names settings for server ('1') and data dictionary ('0') solution

idea 编译protobuf 文件的设置使用

手把手教你设计一个CSDN系统

Docker-compose install mysql
随机推荐
个人博客系统(附源码)
php数组实现根据某个键值将相同键值合并生成新二维数组的方法
St. Regis Takeaway Project: New dishes and dishes paged query
idea设置自动带参数的方法注释(有效)
手把手教你设计一个CSDN系统
Nacos 原理
Introduction to Oracle Patch System and Opatch Tool
Redis学习
2022 Pengcheng Cup web
从底层结构开始学习FPGA(6)----分布式RAM(DRAM,Distributed RAM)
MySQL索引从入门到深入学习
2022年比若依更香的开源项目
成绩排序(华中科技大学考研机试题)(DAY 87)
net start mysql MySQL 服务正在启动 . MySQL 服务无法启动。 服务没有报告任何错误。
【Koltin Flow(二)】Flow操作符之末端操作符
My first understanding of MySql, and the basic syntax of DDL and DML and DQL in sql statements
[其他] DS5
Personal blog system (with source code)
429. N 叉树的层序遍历(两种解法)
1475. 商品折扣后的最终价格