当前位置:网站首页>Linux MySQL command
Linux MySQL command
2022-06-21 19:35:00 【Faith_ two hundred and seventy-three million nine hundred and n】
1、mysql stay linux Check out my.cnf The method of location
locate my.cnf
2、 start-up 、 restart 、 The shutdown command
1、 restart :
systemctl restart mysqld
2、 stop it
systemctl stop mysqld
3、 Start up
service mysqld start
Two 、 Forget your password and change it mysql Password operation :
Turn off password verification first , Get into mysql, And then modify it root Password of account , Turn on password verification
First modify :
1、 modify /etc/my.cnf The configuration file
vi /etc/my.cnf
2、 stay [mysqld] Add under skip-grant-tables, Save it .
Sign in :
1、mysql -u root -p
2、 No password required , Directly enter ( appear Enter Password It's the same. Go straight back , You can login successfully )
3、 Change password
update user set authentication_string=password(‘ New password ’) where user=‘root’;
flush privileges;
sign out :
quit;
go back to /etc/my.cnf file , find [mysqld]、 Add the following skip-grant-tables Delete or comment out directly .
restart mysql: Restart first , In the stop , When executing the start command
边栏推荐
- Delete the specified screen
- 老师们,oracle-cdc遇到不能解析的dml语句,因为这个语句里面有个字段是比较特殊的空间地理位
- 大佬们,麻烦问一个flink sql的问题,我有一个fql语句,insert into c sele
- The R language uses the DOTPLOT function of epidisplay package to visualize the frequency of data points in different intervals in the form of point graph, uses the by parameter to specify the groupin
- 【面试高频题】难度 1/5,难度较低的链表面试题
- Nebula Graph入驻阿里云计算巢,助力企业打造云上超大规模图数据库
- 这篇寒门博士论文致谢火了:回首望过去,可怜无数山
- Wwdc22 multimedia feature summary
- [interval and topic prefix and] prefix and + hash table application questions
- 尚硅谷 尚硅谷 | 什么是ClickHouse表引擎 Memory和Merge
猜你喜欢

一次 MySQL 误操作导致的事故,「高可用」都顶不住了!

GoF模式-03-行为型模式(下)

This humble doctor's thesis is very popular: looking back, I feel sorry for countless mountains

Wwdc22 multimedia feature summary

华为又发新品?这几款功能太优秀了

How many correct answers can you get to Huawei Hongmeng certification test questions?

W10添加系统环境变量Path

华为鸿蒙认证测试题,你能答对几道?

Cache design issues

Second cloud's original fully compatible solution for Xinchuang is upgraded to help accelerate the implementation of Xinchuang industry
随机推荐
This humble doctor's thesis is very popular: looking back, I feel sorry for countless mountains
Regional competitions in recent years (20-22)
在 KubeSphere 上部署 Apache Pulsar
鸿蒙之后,华为宣布再将捐赠欧拉,鸿蒙和欧拉的捐赠预计将给业界带来哪些影响?
老师们,oracle-cdc遇到不能解析的dml语句,因为这个语句里面有个字段是比较特殊的空间地理位
系统集成项目管理工程师(软考中级)怎么备考?
CPDA|数据分析师需要具备哪些基本功?
《Go题库·9》同一个协程里面,对无缓冲channel同时发送和接收数据有什么问题
点歌系统也有鸿蒙版了?老王抢先体验了一把
轻松入门自然语言处理系列 专题6 代码实战──基于语言模型的拼写纠错
决策树的实现和调优(sklearn,GridSearchCV)
Nepal graph has settled in Alibaba cloud computing nest to help enterprises build a super large-scale map database on the cloud
After Hongmeng, Huawei announced that it would donate to Euler again. What impact is expected to be brought to the industry by the donations of Hongmeng and Euler?
Post Gartner webinar "nine questions on digital transformation"
插入类排序法
[pwn基础]Pwntools学习
OGG-21.3 报错 OGG-00768 Failed to Map database character to ULibCharSet
SQL操作:WITH表达式及其应用
根据数据中的key获取value值
R语言使用plyr包的rbind.fill函数纵向合并两个数据列不同的dataframe数据