当前位置:网站首页>Tutorial on principles and applications of database system (004) -- MySQL installation and configuration: resetting MySQL login password (Windows Environment)
Tutorial on principles and applications of database system (004) -- MySQL installation and configuration: resetting MySQL login password (Windows Environment)
2022-07-01 16:19:00 【Rsda DBA_ WGX】
Database system principle and Application Tutorial (004)—— MySQL Installation and configuration : Reset MySQL The login password (windows Environmental Science )
Catalog
If you forget root The login password of the user caused root The user can't log in MySQL, The following solutions can be adopted .
Method 1 : start-up MySQL Skip security check when serving
1、 stop it MySQL service ( Run the command line window as an administrator )

2、 start-up MySQL Skip security check when serving

3、 Open another window , Log in with an empty password root account number , As shown in the figure below .

4、 To reset root Account and password , As shown in the figure below .

5、 End mysqld.exe process , Restart MySQL service , Log in to the system with a new password , As shown in the figure below .

Method 2 、 modify MySQL Configuration file for
1、 stop it MySQL service , As shown in the figure below .

2、 modify MySQL Configuration file for my.ini, As shown in the figure below .

3、 stay my.ini Of documents 【MySQLd】 Partial addition :skip-grant-tables, As shown in the figure below .

4、 preservation my.int file , start-up MySQL service , As shown in the figure below .

5、 Sign in MySQL, Log in with an empty password , As shown in the figure below .

6、 hold root The password of the account is changed to 123456

7、 stop it MySQL service

8、 modify my.ini file , Delete the content :skip-grant-tables

9、 start-up MySQL service , Log in to the system with a new password

边栏推荐
- Comment win11 définit - il les permissions de l'utilisateur? Win11 comment définir les permissions de l'utilisateur
- Principle of SSM framework
- 2023届春招实习-个人面试过程和面经分享
- FPN网络详解
- 自動、智能、可視!深信服SSLO方案背後的八大設計
- How to adjust the size of computer photos to what you want
- How to use MySQL language for row and column devices?
- IM即时通讯开发实现心跳保活遇到的问题
- 【Hot100】19. 删除链表的倒数第 N 个结点
- Go 语言源码级调试器 Delve
猜你喜欢

Five years after graduation, I became a test development engineer with an annual salary of 30w+

【Hot100】17. 电话号码的字母组合

运动捕捉系统原理

IM即时通讯开发万人群聊消息投递方案

How long will it take to achieve digital immortality? Metacosmic holographic human avatar 8i

Nuxt. JS data prefetching

毕业后5年,我成为了年薪30w+的测试开发工程师
![[daily news]what happened to the corresponding author of latex](/img/0f/d19b27dc42124c89993dee1bada838.png)
[daily news]what happened to the corresponding author of latex

基于PHP的轻量企业销售管理系统

超视频时代,什么样的技术会成为底座?
随机推荐
红队第10篇:coldfusion反序列化过waf改exp拿靶标的艰难过程
Idea start command line is too long problem handling
The latest NLP game practice summary!
智慧党建: 穿越时空的信仰 | 7·1 献礼
ATSs: automatically select samples to eliminate the difference between anchor based and anchor free object detection methods
process. env. NODE_ ENV
Nuxt. JS data prefetching
Uncover the "intelligence tax" of mousse: spend 4billion on marketing, and only 7 invention patents
vscode 查找 替换 一个文件夹下所有文件的数据
Seata中1.5.1 是否支持mysql8?
[每日一氵]Latex 的通讯作者怎么搞
Which MySQL functions are currently supported by tablestore in table storage?
Vscode find and replace the data of all files in a folder
高端程序员上班摸鱼指南
Overview | slam of laser and vision fusion
Malaysia's Star: Sun Yuchen is still adhering to the dream of digital economy in WTO MC12
Pico, do you want to save or bring consumer VR?
Sales management system of lightweight enterprises based on PHP
Smart Party Building: faith through time and space | 7.1 dedication
2023届春招实习-个人面试过程和面经分享