当前位置:网站首页>Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
Error 1045 (28000) occurs when Linux logs in MySQL: access denied for user 'root' @ 'localhost' (using password: yes)
2022-07-03 05:37:00 【WA_ automata】
We need to bypass the password to login

Add such a jargon

[mysqld]
skip-grant-tables
Then restart the database , You can log in without secret
# Add do not add .service Suffixes are OK
start-up :systemctl start mysqld.service
close :systemctl stop mysqld.service
restart :systemctl restart mysqld.service
Check the status :systemctl status mysqld.service


At this time, login without password cannot be used alter user Statement first root Password field update Is an empty character
update mysql.user set authentication_string='' where user='root';
FLUSH PRIVILEGES;// Refresh the permissions
close mysql service , Comment out the configuration file skip-grant-tables, start-up mysql service
Change the password after entering again
ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';
边栏推荐
- NG Textarea-auto-resize
- 牛客网 JS 分隔符
- Final review (Day2)
- Niuke JS separator
- [practical project] autonomous web server
- 穀歌 | 蛋白序列的深度嵌入和比對
- 配置xml文件的dtd
- Classification and discussion of plane grab detection methods based on learning
- Export the altaro event log to a text file
- (perfect solution) how to set the position of Matplotlib legend freely
猜你喜欢

Altaro virtual machine replication failed: "unsupported file type vmgs"

Webrtc M96 release notes (SDP abolishes Plan B and supports opus red redundant coding)

Sophomore dilemma (resumption)

"C and pointer" - Chapter 13 function pointer 1: callback function 2 (combined with template to simplify code)

Go practice -- factory mode of design patterns in golang (simple factory, factory method, abstract factory)

SimpleITK学习笔记

Altaro o365 total backup subscription plan

Deep embedding and alignment of Google | protein sequences

Redis使用Lua脚本简介

Skip table: principle introduction, advantages and disadvantages of skiplist
随机推荐
XML Configuration File
Bluebridge cup real topic 2020 palindrome date simulation construction provincial competition
Redis 击穿穿透雪崩
Webrtc protocol introduction -- an article to understand ice, stun, NAT, turn
32GB Jetson Orin SOM 不能刷机问题排查
Yolov5 model construction source code details | CSDN creation punch in
mapbox尝鲜值之云图动画
Deploy crawl detection network using tensorrt (I)
在PyCharm中配置使用Anaconda环境
[set theory] relational closure (relational closure related theorem)
2022.6.30DAY591
Simpleitk learning notes
6.23星期四库作业
"250000 a year is just the price of cabbage" has become a thing of the past. The annual salary of AI posts has decreased by 8.9%, and the latest salary report has been released
Final review (day3)
AtCoder Beginner Contest 258(A-D)
The IntelliJ platform completely disables the log4j component
[untitled]
Installing altaro VM backup
"C and pointer" - Chapter 13 advanced pointer int * (* (* (*f) () [6]) ()