当前位置:网站首页>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
边栏推荐
- How much do you know about the process of the interview
- Use case execution of robot framework
- Set the color change of interlaced lines in cells in the sail software and the font becomes larger and red when the number is greater than 100
- MySQL personal learning summary
- 关于 background-image 渐变gradient()那些事!
- 扫码登录的原理你真的了解吗?
- 伪分布安装spark
- Redis "8" implements distributed current limiting and delay queues
- Public variables of robotframework
- Dlib of face recognition framework
猜你喜欢

如何建立 TikTok用户信任并拉动粉丝增长

【PIMF】OpenHarmony啃论文俱乐部—在ACM Survey闲逛是什么体验

How much do you know about the process of the interview

Real time operation of vim editor

Gartner 發布新興技術研究:深入洞悉元宇宙

The first line and the last two lines are frozen when paging

Dancenn: overview of byte self-developed 100 billion scale file metadata storage system

SQL database

How to choose the wireless gooseneck anchor microphone and handheld microphone scheme

Set cell filling and ranking method according to the size of the value in the soft report
随机推荐
MySQL master-slave synchronization pit avoidance version tutorial
计算饼状图百分比
Quick install mongodb
ACL 2022 | dialogved: a pre trained implicit variable encoding decoding model for dialogue reply generation
无线鹅颈麦主播麦手持麦无线麦克风方案应当如何选择
关于局域网如何组建介绍
DDT + Excel for interface test
04 Lua 运算符
On the security of key passing and digital signature
05 Lua 控制结构
Regular filtering of Intranet addresses and segments
漫画:什么是IaaS、PaaS、SaaS?
Sail soft implements a radio button, which can uniformly set the selection status of other radio buttons
博士申请 | 厦门大学信息学院郭诗辉老师团队招收全奖博士/博后/实习生
Detailed explanation of file operation (2)
正则过滤内网地址和网段
Nodejs reads the local JSON file through require. Unexpected token / in JSON at position appears
Installation and management procedures
Use case execution of robot framework
Set the color change of interlaced lines in cells in the sail software and the font becomes larger and red when the number is greater than 100