当前位置:网站首页>What if MySQL forgets the password
What if MySQL forgets the password
2022-07-29 03:04:00 【emgexgb_ sef】
mysql Forgetting your password is a common thing , So how to solve it ?
1、 First of all, will MySQL Service shutdown for , The two methods :
(1) Open the command line cmd Input net stop mysql Command to close MySQL service .
(2) Find a service , find MYSQL56( My computer is equipped with mysql5.6, So this is MYSQL56) Then close it
2、 open MySQL The installation path , Enter into bin Directory , The two methods :
(1) Enter in the directory cmd, That is, you can command line window , And the directory is also bin Under the table of contents 
(2) Or open the command line , Input cd F:mysqlin enter
3、 Remove the certification check
mysqld --skip-grant-tables
In the last step cmd window , Input mysqld --skip-grant-tables And then go back
This command is to remove the authentication check . Prepare for the following operations , Do not close !!!
4、 Enter into mysql Containers
Open a new command line , Input mysql enter
mysql

5、 Verify whether the database login is successful
show databases;

Database description successful login .
6、 Input Use mysql database .
use mysql;
mysql Database is to save user name and password .
7、 View all tables
show tables;
user Table storage user name , password , Authority and so on account information .
8、 View account information
select user,host,password from user;

9、 change root password , The password for 123456
update user set password=password('123456') where user='root' and host='localhost';

10、 Check your account information again
select user,host,password from user;
You can see that the password has been changed .
11、 stay Navicat Verify database .

This will solve the problem of forgetting the database password ~~~
边栏推荐
- 瀚高数据库最佳实践配置工具HG_BP日志采集内容
- 01-sdram: Code of initialization module
- HTB-Blocky
- SQL查询数据之多表(关联)查询
- Redis配置缓存过期监听事件触发
- Inventory of domestic and foreign project collaborative management software: SAAS and customization become a trend
- Seed random seed
- Unable to start after idea installation
- 《QA离业务代码能有多近?》QA对业务代码进行可测性改造
- Plug in --- line segment sloth marking board + simple mathematical reasoning
猜你喜欢

13_ue4进阶_蒙太奇动画实现一边走一边攻击

JVM基础入门篇一(内存结构)

12_ue4进阶_换一个更好看的人物模型

Tp5.0 applet users do not need to log in and directly obtain the user's mobile number.

瀚高数据库最佳实践配置工具HG_BP日志采集内容

VASP calculation task error: M_ divide:can not subdivide 8 nodes by 6
![[open the door to the new world] see how the old bird of testing plays API testing between applause](/img/79/1bc836cefef24d23e09d9865ff1fba.png)
[open the door to the new world] see how the old bird of testing plays API testing between applause

Confusion matrix learning notes

Hangao database best practice configuration tool Hg_ BP log collection content

Apache文件管理自学笔记——映射文件夹和基于单ip多域名配置apache虚拟机
随机推荐
C陷阱与缺陷 第3章 语义“陷阱” 3.9 整数溢出
C陷阱与缺陷 第3章 语义“陷阱” 3.6 边界计算与不对称边界
Confusion matrix learning notes
增量实时灾备笔记
Day 10 notes
Jinshan cloud returns to Hong Kong for listing: Hong Kong stock rush of Chinese to B cloud manufacturers
Li Shuo, vice president of Baidu: it's a good thing that China's labor costs rise with the support of digital technology
C陷阱与缺陷 第3章 语义“陷阱” 3.7 求值顺序
Plug in --- line segment sloth marking board + simple mathematical reasoning
生产部署zabbix5.0笔记
C语言基础知识点汇总
navicat新建数据库
mycat读写分离配置
《QA离业务代码能有多近?》通过codediff直接暴露缺陷
cuda-gdb提示:/tmp/tmpxft_***.cudafe1.stub.c: No such file or directory.
MySql的安装配置超详细教程与简单的建库建表方法
2022-07-28 第四小组 修身课 学习笔记(every day)
MySQL - the difference between count (field), count (primary key), count (1), count (*)
Verilog:阻塞赋值和非阻塞赋值
MYSQL入门与进阶(十二)