当前位置:网站首页>linux安装mysql后修改密码
linux安装mysql后修改密码
2022-04-23 14:00:00 【白云碎里一蓑舟】
1. 修改my.cnf文件
添加skip-grant-tables #修改密码
2. 重启并修改密码
#重启mysql
systemctl restart mysql_slave.service
#进入mysql
mysql -S /data/mysql_storage/mysql.sock
#修改密码
update mysql.user set authentication_string=password('12349') where user='root';
#刷新权限
flush privileges;
#退出
exit
3. 在my.cnf文件删掉skip-grant-tables,并重启mysql
结束啦~
版权声明
本文为[白云碎里一蓑舟]所创,转载请带上原文链接,感谢
https://blog.csdn.net/m0_49513507/article/details/123549126
边栏推荐
- 神经元与神经网络
- VsCode-Go
- 联想产品经理林林:天津当地网络运营商网络故障 ZUI系统后台服务器暂时无法正常工作
- Force deduction brush question 101 Symmetric binary tree
- MySQL [read / write lock + table lock + row lock + mvcc]
- Jenkins construction and use
- Express ② (routing)
- JS force deduction brush question 102 Sequence traversal of binary tree
- The latest development of fed digital currency
- leetcode--977. Squares of a Sorted Array
猜你喜欢
cnpm的诡异bug
Express ② (routage)
服务器中挖矿病毒了,屮
自动化的艺术
Quartus prime hardware experimental development (de2-115 board) experiment II function adjustable comprehensive timer design
How does redis solve the problems of cache avalanche, cache breakdown and cache penetration
1256:献给阿尔吉侬的花束
MySQL [acid + isolation level + redo log + undo log]
Question bank and answer analysis of the 2022 simulated examination of the latest eight members of Jiangxi construction (quality control)
Decentralized Collaborative Learning Framework for Next POI Recommendation
随机推荐
生成随机高质量符合高斯分布的随机数
【vmware】vmware tools 地址
Question bank and answer analysis of the 2022 simulated examination of the latest eight members of Jiangxi construction (quality control)
STM32学习记录0007——新建工程(基于寄存器版)
Quartus prime hardware experimental development (de2-115 board) experiment 1 CPU instruction calculator design
websocket
Solution of discarding evaluate function in surprise Library
AtCoder Beginner Contest 248C Dice Sum (生成函数)
Android篇:2019初中级Android开发社招面试解答(中
freeCodeCamp----time_ Calculator exercise
Android: answers to the recruitment and interview of intermediate Android Development Agency in early 2019 (medium)
L2-024 tribe (25 points)
Yarn online dynamic resource tuning
Atcoder beginer contest 248c dice sum (generating function)
Jiannanchun understood the word game
crontab定时任务输出产生大量邮件耗尽文件系统inode问题处理
读了一篇博客,重新理解闭包整理一下
Quartus Prime硬件实验开发(DE2-115板)实验二功能可调综合计时器设计
解决方案架构师的小锦囊 - 架构图的 5 种类型
Interesting talk about network protocol