当前位置:网站首页>Change the password after installing MySQL in Linux
Change the password after installing MySQL in Linux
2022-04-23 16:48:00 【A coir boat in the broken white clouds】
1. modify my.cnf file
add to skip-grant-tables # Change Password
2. Restart and change password
# restart mysql
systemctl restart mysql_slave.service
# Get into mysql
mysql -S /data/mysql_storage/mysql.sock
# Change Password
update mysql.user set authentication_string=password('12349') where user='root';
# Refresh the permissions
flush privileges;
# sign out
exit
3. stay my.cnf File deletion skip-grant-tables, And restart mysql
The end! ~
版权声明
本文为[A coir boat in the broken white clouds]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231400068377.html
边栏推荐
- Pytorch: the pit between train mode and eval mode
- Log4j output log information to file
- Solution of garbled code on idea console
- 英语 | Day15、16 x 句句真研每日一句(从句断开、修饰)
- File upload and download of robot framework
- About background image gradient()!
- TypeError: set_figure_params() got an unexpected keyword argument ‘figsize‘
- Sail soft segmentation solution: take only one character (required field) of a string
- Bytevcharts visual chart library, I have everything you want
- Gartner 發布新興技術研究:深入洞悉元宇宙
猜你喜欢
Sail soft calls the method of dynamic parameter transfer and sets parameters in the title
Do you really understand the principle of code scanning login?
True math problems in 1959 college entrance examination
[pimf] openharmony paper Club - what is the experience of wandering in ACM survey
Knowledge points and examples of [seven input / output systems]
Idea of batch manufacturing test data, with source code
面试百分百问到的进程,你究竟了解多少
如何建立 TikTok用户信任并拉动粉丝增长
Gartner 發布新興技術研究:深入洞悉元宇宙
人脸识别框架之dlib
随机推荐
org. apache. parquet. schema. InvalidSchemaException: A group type can not be empty. Parquet does not su
Do you really understand the principle of code scanning login?
人脸识别框架之dlib
如何建立 TikTok用户信任并拉动粉丝增长
How magical is the unsafe class used by all major frameworks?
loggie 源码分析 source file 模块主干分析
蓝桥杯省一之路06——第十二届省赛真题第二场
文件系统读写性能测试实战
无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
Gartner 发布新兴技术研究:深入洞悉元宇宙
Solution of garbled code on idea console
关于局域网如何组建介绍
Phpstudy V8, a commonly used software for station construction 1 graphic installation tutorial (Windows version) super detailed
Real time operation of vim editor
Execution plan calculation for different time types
Nodejs reads the local JSON file through require. Unexpected token / in JSON at position appears
Use case labeling mechanism of robot framework
伪分布安装spark
JIRA screenshot
磁盘管理与文件系统