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

边栏推荐
- Motion capture system for apple picking robot
- 用手机在同花顺上开户靠谱吗?这样有没有什么安全隐患
- FPN网络详解
- Problèmes rencontrés dans le développement de la GI pour maintenir le rythme cardiaque en vie
- Task. Run(), Task. Factory. Analysis of behavior inconsistency between startnew() and new task()
- Which MySQL functions are currently supported by tablestore in table storage?
- Origin2018安装与使用(整理中)
- 圈铁发音,动感与无噪强强出彩,魔浪HIFIair蓝牙耳机测评
- Action after deleting laravel's model
- The latest NLP game practice summary!
猜你喜欢

韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯
![[open source data] open source data set for cross modal (MRI, Meg, eye movement) human spatial memory research based on virtual reality scenes](/img/73/98e4847783be26d86d147425ce3ecd.jpg)
[open source data] open source data set for cross modal (MRI, Meg, eye movement) human spatial memory research based on virtual reality scenes

Smart Party Building: faith through time and space | 7.1 dedication

【Hot100】19. 删除链表的倒数第 N 个结点

【观察】数字化时代的咨询往何处走?软通咨询的思与行

电脑照片尺寸如何调整成自己想要的

高端程序员上班摸鱼指南
![[observation] where is the consulting going in the digital age? Thoughts and actions of softcom consulting](/img/82/3bb382893682a30e8af130365ec4ef.jpg)
[observation] where is the consulting going in the digital age? Thoughts and actions of softcom consulting

2022 Moonriver global hacker song winning project list

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
随机推荐
2023届春招实习-个人面试过程和面经分享
周少剑,很少见
怎么用MySQL语言进行行列装置?
Analysis of PostgreSQL storage structure
July 1, 2022 Daily: Google's new research: Minerva, using language models to solve quantitative reasoning problems
全面看待企业数字化转型的价值
Overview | slam of laser and vision fusion
Problems encountered in IM instant messaging development to maintain heartbeat
Which MySQL functions are currently supported by tablestore in table storage?
Programming examples of stm32f1 and stm32subeide - production melody of PWM driven buzzer
电脑屏幕变色了怎么调回来,电脑屏幕颜色怎么改
Sqlserver query: when a.id is the same as b.id, and the A.P corresponding to a.id cannot be found in the B.P corresponding to b.id, the a.id and A.P will be displayed
揭秘慕思“智商税”:狂砸40亿搞营销,发明专利仅7项
Use Tencent cloud to build a map bed service
【IDM】IDM下载器安装
vscode 查找 替换 一个文件夹下所有文件的数据
C#/VB. Net merge PDF document
Win11如何设置用户权限?Win11设置用户权限的方法
Korean AI team plagiarizes shock academia! One tutor with 51 students, or plagiarism recidivist
韩国AI团队抄袭震动学界!1个导师带51个学生,还是抄袭惯犯