当前位置:网站首页>What if MySQL database forgets its password???
What if MySQL database forgets its password???
2022-07-27 18:44:00 【Ding Dang's fantasy】
thought
Close the service , Skip password verification , Opening service , Password-free login , Change Password , Restart service password login
Realization
Close the service :systemctl stop mysqld
Skip password verification : stay /etc/my.cnf Medium [mysqld] Add below skip-grant-tables
Opening service :systemctl start mysqld
Access to database mysql -uroot
Get into mysql library :use mysql;
Update the password :update user set authentication_string=password("qf1234") where user="root";
Refresh the permissions :flush privileges;
Exit database : exit
take skip-grant-tables notes
restart systemctl restart mysqld
Log in with the new password
边栏推荐
- The song of the virtual idol was originally generated in this way!
- Log4j epic loopholes, big companies like jd.com have been recruited
- 1. OpenCV image basic operation
- 2021.7.18笔记 mysql数据类型
- [mit 6.s081] LEC 3: OS organization and system calls notes
- Graphical interface programming
- Uni app traversal array rendering data vertical rendering
- 2021.7.13 note sub query
- Random talk on GIS data (V) - geographic coordinate system
- 多功能无线遥控艾灸仪芯片-DLTAP703SD
猜你喜欢

如何实现Word、PDF、TXT文件的全文内容检索?

1. OpenCV image basic operation

2021.7.31笔记 视图

2021.8.1 Notes database design

LED学习护眼台灯触摸芯片-DLT8T10S-杰力科创

10 SQL optimization schemes summarized by Alibaba P8 (very practical)

2021.7.18 notes MySQL data type

2021.7.22笔记 约束

2021.7.17 notes MySQL other commands

图文结合,完美解释MySQL逻辑备份的实现流程
随机推荐
2021.7.12 internal and external connection of notes
LED带风扇护眼学习台灯触摸芯片-DLT8S12A
Alibaba architects spent 280 hours sorting out 1015 pages of distributed full stack pamphlets to easily start the distributed system
JS tool - Cookie simple encapsulation
Pandas' to_ SQL function usage
2021.8.1 Notes database design
USB充电式暖手宝芯片-DLTAP602SC-杰力科创
XML learning Day1: XML / jsup parser / selector /xpath selector
File path read
微信小程序 wxacode.getUnlimited生成小程序码
2021.7.22 note constraints
全自动吸奶器芯片-DLTAP703SD
[MIT 6.S081] Lab 4: traps
[mit 6.s081] LEC 4: page tables notes
微信小程序获取手机号
Solve the problem of JSP cascading
智能失眠治疗仪产品-DLT8P68SA-杰力科创
TypeError: conv2d(): argument ‘padding‘ (position 5) must be tuple of ints, not str【报错】
JDBC learning day1:jdbc
2021.7.13 note sub query