当前位置:网站首页>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
边栏推荐
猜你喜欢
Nifi fast installation and file synchronization
DDT + Excel for interface test
Disk management and file system
G008-hwy-cc-estor-04 Huawei Dorado V6 storage simulator configuration
昆腾全双工数字无线收发芯片KT1605/KT1606/KT1607/KT1608适用对讲机方案
100 deep learning cases | day 41 - convolutional neural network (CNN): urbansound 8K audio classification (speech recognition)
批量制造测试数据的思路,附源码
loggie 源码分析 source file 模块主干分析
Nacos 详解,有点东西
vscode如何比较两个文件的异同
随机推荐
Dlib of face recognition framework
漫画:什么是IaaS、PaaS、SaaS?
文件操作详解(2)
阿里研发三面,面试官一套组合拳让我当场懵逼
The first line and the last two lines are frozen when paging
Esxi encapsulated network card driver
计组 | 【七 输入/输出系统】知识点与例题
Postman batch production body information (realize batch modification of data)
Selenium IDE and XPath installation of chrome plug-in
Zhimeng dedecms security setup Guide
On the security of key passing and digital signature
Pycham connects to the remote server and realizes remote debugging
Report FCRA test question set and answers (11 wrong questions)
Use case labeling mechanism of robot framework
【Pygame小游戏】10年前风靡全球的手游《愤怒的小鸟》,是如何霸榜的?经典回归......
Loading order of logback configuration file
◰GL-阴影贴图核心步骤
Introduction to new functions of camtasia2022 software
An essay on the classical "tear down the wall in thinking"
5-minute NLP: text to text transfer transformer (T5) unified text to text task model