当前位置:网站首页>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
边栏推荐
- Special test 05 · double integral [Li Yanfang's whole class]
- 程序编译调试学习记录
- Choreographer全解析
- Using Jupiter notebook in virtual environment
- 专题测试05·二重积分【李艳芳全程班】
- Haruki Murakami -- Excerpt from "what do I talk about when I talk about running"
- go 语言 数组,字符串,切片
- JS 烧脑面试题大赏
- SQL learning | complex query
- 初探 Lambda Powertools TypeScript
猜你喜欢
随机推荐
About note 1
Special test 05 · double integral [Li Yanfang's whole class]
AtCoder Beginner Contest 248C Dice Sum (生成函数)
freeCodeCamp----arithmetic_ Arranger exercise
淘宝发布宝贝提示“您的消保保证金额度不足,已启动到期保障”
groutine
Multithreading
[code analysis (1)] communication efficient learning of deep networks from decentralized data
Jenkins construction and use
SQL learning | set operation
基于Ocelot的gRpc网关
BUG_me
33 million IOPs, 39 microsecond delay, carbon footprint certification, who is serious?
SPC简介
leetcode--977. Squares of a Sorted Array
【项目】小帽外卖(八)
趣谈网络协议
程序编译调试学习记录
redis如何解决缓存雪崩、缓存击穿和缓存穿透问题
Tensorflow & pytorch common error reporting








