当前位置:网站首页>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
边栏推荐
猜你喜欢

Strange bug of cnpm

Elmo (bilstm-crf + Elmo) (conll-2003 named entity recognition NER)
![[VMware] address of VMware Tools](/img/0e/13f263bd69c8224f7c755258d94777.png)
[VMware] address of VMware Tools

What is the difference between blue-green publishing, rolling publishing and gray publishing?

Quartus Prime硬件实验开发(DE2-115板)实验二功能可调综合计时器设计

Record a strange bug: component copy after cache component jump

go 语言 数组,字符串,切片

Choreographer全解析

基于Ocelot的gRpc网关

freeCodeCamp----time_ Calculator exercise
随机推荐
Wechat applet
Express②(路由)
Reading notes: meta matrix factorization for federated rating predictions
Move blog to CSDN
scikit-learn構建模型的萬能模板
[code analysis (4)] communication efficient learning of deep networks from decentralized data
SQL learning | complex query
分页SQL
村上春树 --《当我谈跑步时,我谈些什么》句子摘录
Leetcode brush question 897 incremental sequential search tree
初识go语言
Jiannanchun understood the word game
Using Jupiter notebook in virtual environment
程序编译调试学习记录
leetcode--357. 统计各位数字都不同的数字个数
Express中间件③(自定义中间件)
商家案例 | 运动健康APP用户促活怎么做?做好这几点足矣
Choreographer全解析
Leetcode brush question 𞓜 13 Roman numeral to integer
神经元与神经网络