当前位置:网站首页>Navicat error: 1045-Access denied for user [email protected](using passwordYES)
Navicat error: 1045-Access denied for user [email protected](using passwordYES)
2022-07-30 00:34:00 【m0_67393157】
Foreword:
The thing is like this, yesterday I was debugging an oython project given by my mentor. This project has no documentation, so I need to match and create the database information myself, so I connected this project to my local database., to debug. After I connected to the database, I ran the Flask project, but the database could no longer be opened, and an error was displayed:
1045-Access denied for user [email protected](using password:YES).In order to let friends who encounter the same problem avoid this pit, I will record the process of solving it.
Body:
Anyone who encounters this problem on the terminal has a high probability of forgetting the password, but when Navicat cannot open the database, there is a high probability that something went wrong, and I don't know the details, so I solved it like this:
First open the terminal as administrator, then open the database:
Then enter the command: mysql -u root -p
Type your password again.Then enter a command to change your current password:
Ps: This place must be tried!!!At first, I didn’t believe that changing the password would be enough. I felt that this problem should be solved from the root cause, but it turns out that changing the password is really effective. I can log in with Navicat after changing the password.
The command to change the password in versions before mysql8.0:
update mysql.user set authentication_string=password("new password") where user="root";The command to change the password in versions after mysql8.0:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'new password'
How to see what version of mysql is, you can check it from Navicat:
Of course, if the command according to the corresponding version does not work, try another command.
After entering the command, exit mysql and log in with the new password once:
If it doesn't work, you need to look at other bloggers' articles, because this error is really sudden, and the solution is also very sudden...
Summary:
When encountering this kind of problem, you can start with the simplest way to change the password. If changing the database password can't solve it, go to find a further method, at least one possibility is ruled out.If you have a better solution, please leave a comment below or send me a private message, thank you very much!???
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
边栏推荐
- Detailed explanation of nacos cluster configuration
- 抖音短视频流量获取攻略,掌握好这些一定可以出爆款
- STM32——OLED显示实验
- He used to cells harvested trypsin & release procedure
- KDE Frameworks 5.20.0:Plasma迎来诸多改进
- Missing X64 mfc140u. DLL file - > application cannot normal boot (0 xc000007b) solution
- MySql的初识感悟,以及sql语句中的DDL和DML和DQL的基本语法
- Worthington dissociating enzyme: detailed analysis of neutral protease (dispase)
- Minimum number to rotate array
- 重新定义分析 - EventBridge 实时事件分析平台发布
猜你喜欢
Win11的WSL2系统更换磁盘和wsl使用简介
基于TNEWS‘ 今日头条中文新闻(短文本)分类
【集训DAY16】KC ‘ s Stars【dfs】
Worthington解离酶:中性蛋白酶(分散酶)详情解析
Worthington Dissociation Enzymes: Trypsin and Frequently Asked Questions
高德地图jsapi不生效 INVALID_USER_SCODE
低压差线性稳压器MPQ2013A-AEC1品牌MPS国产替代
Worthington Papain & Chymotrypsin & DNase I
CNN的粗浅理解
Print linked list from end to beginning
随机推荐
The solution to the bug, the test will no longer be blamed
【经验】经验总结-经验教训
【集训DAY16】KC‘s Can 【动态规划】
外包干了五年,废了...
KDE Frameworks 5.20.0:Plasma迎来诸多改进
Docker installs redis cluster (including deployment script)
One article to answer web performance optimization
9 common mistakes testers fall into
557. 反转字符串中的单词 III
i.MX6U-driver development-3-new character driver
Navicat如何连接MySQL
Worthington经过使用测试的细胞分离系统方案
[Training DAY16] ALFA [convex hull] [computational geometry]
X64 mfc140u.dll文件缺失->应用程序无法正常启动(0xc000007b)解决方法
Codeforces Round #805 (Div. 3) Summary
How Filebeat ensures that the log file is still correctly read when the log file is split (or rolled)
遇到bug的解决办法,测试再也不背锅了
He cell separation technology 丨 basic primary cell separation methods and materials
定时器学习
[Experience] Experience Summary - Lessons Learned