当前位置:网站首页>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

边栏推荐
- In the era of super video, what kind of technology will become the base?
- 【php毕业设计】基于php+mysql+apache的教材管理系统设计与实现(毕业论文+程序源码)——教材管理系统
- 【LeetCode】43. String multiplication
- StoneDB 为国产数据库添砖加瓦,基于 MySQL 的一体化实时 HTAP 数据库正式开源!
- The latest NLP game practice summary!
- [PHP graduation design] design and implementation of textbook management system based on php+mysql+apache (graduation thesis + program source code) -- textbook management system
- [daily news]what happened to the corresponding author of latex
- 苹果自研基带芯片再次失败,说明了华为海思的技术领先性
- Huawei issued hcsp-solution-5g security talent certification to help build 5g security talent ecosystem
- 复杂度相关OJ题(LeetCode、C语言、复杂度、消失的数字、旋转数组)
猜你喜欢

How to use MySQL language for row and column devices?

Win11如何設置用戶權限?Win11設置用戶權限的方法

The supply of chips has turned to excess, and the daily output of Chinese chips has increased to 1billion, which will make it more difficult for foreign chips

怎麼用MySQL語言進行行列裝置?

【Hot100】20. 有效的括号

Introduction to RT thread env tool (learning notes)

SQLServer查询: a.id与b.id相同时,a.id对应的a.p在b.id对应的b.p里找不到的话,就显示出这个a.id和a.p

Talking from mlperf: how to lead the next wave of AI accelerator

Motion capture system for apple picking robot

实现数字永生还有多久?元宇宙全息真人分身#8i
随机推荐
Zero copy technology of MySQL
idea启动Command line is too long问题处理
How long will it take to achieve digital immortality? Metacosmic holographic human avatar 8i
2022 Moonriver global hacker song winning project list
Example of vim user automatic command
China's intelligent transportation construction from the perspective of "one hour life circle" in Dawan District
Microservice tracking SQL (support Gorm query tracking under isto control)
全面看待企业数字化转型的价值
FPN网络详解
Smart Party Building: faith through time and space | 7.1 dedication
IM即时通讯开发实现心跳保活遇到的问题
【Hot100】20. 有效的括号
运动捕捉系统原理
制造业数字化转型究竟是什么
AVL balanced binary search tree
【Hot100】17. Letter combination of telephone number
Nuxt. JS data prefetching
部门来了个拿25k出来的00后测试卷王,老油条表示真干不过,已被...
毕业后5年,我成为了年薪30w+的测试开发工程师
嵌入式开发:5个修订控制最佳实践