当前位置:网站首页>Local MySQL forgot the password modification method (Windows)
Local MySQL forgot the password modification method (Windows)
2022-07-04 11:02:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
Do you have the embarrassment of forgetting your password Are you connected Mysql It's embarrassing to forget the installation path of Don't ask me how I know that , Ha ha ha Don't talk much , Let's get to the point !
If you remember mysql If the installation path of , Skip step directly 1 2 3
1. keyboard Windows + R, Input services.msc And then go back ;
2. find Mysql, Right click Mysql Find the attribute , Open it and you can see the path of the executable file ;
PS: You can switch to uppercase , Then press... All the time M M M…( Ancestral recipe )
3. Get into bin Under the table of contents , Hold down shift + Right mouse button , Click on the open “ Open here Powershell window ”
4. Close the service , Enter... In the command window
4.1 net stop mysql
4.2 mysqld –console –skip-grant-tables –shared-memory
Don't close the window yet
5. Like steps 3 Open a command window again
5.1 mysql -u root -p enter , Now let you enter the password , No input , Directly enter
5.2 use mysql
5.3 update user set authentication_string=” where user=’root’;
5.4 quit
6. close window 1、2, Remake steps 3 Open a command window again
6.1 net start mysql
6.2 mysql -u root -p enter , No password , enter
6.3 ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘root2020’;
7. Change the password , The new password is root2020.
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/149140.html Link to the original text :https://javaforall.cn
边栏推荐
- Performance features focus & JMeter & LoadRunner advantages and disadvantages
- [Galaxy Kirin V10] [server] grub default password
- Replace() function
- Interview and lecture summary 1
- Usage of case when then else end statement
- [test theory] test process management
- unit testing
- [Galaxy Kirin V10] [server] system partition expansion
- Capl: timer event
- Postman advanced
猜你喜欢

Detailed array expansion analysis --- take you step by step analysis

Climb Phoenix Mountain on December 19, 2021

Canoe - the third simulation project - bus simulation - 2 function introduction, network topology

MFC document view framework (relationship between classes)
![[Galaxy Kirin V10] [desktop] printer](/img/ab/066923f1aa1e8dd8dcc572cb60a25d.jpg)
[Galaxy Kirin V10] [desktop] printer

Open the neural network "black box"! Unveil the mystery of machine learning system with natural language

Replace() function

shell awk
![[Galaxy Kirin V10] [server] iSCSI deployment](/img/60/13f43dc584c0768965d60811768948.jpg)
[Galaxy Kirin V10] [server] iSCSI deployment

Dichotomy search (C language)
随机推荐
Canoe: the difference between environment variables and system variables
[test theory] test the dimension of professional ability
Recursive method to achieve full permutation (C language)
JMeter correlation technology
[machine] [server] Taishan 200
Canoe - the second simulation engineering - xvehicle - 2 panel design (operation)
[testing theory] thinking about testing profession
Software testing related resources
Canoe: distinguish VT, VN and vteststudio from their development history
Cacti主机模板之定制版
[Galaxy Kirin V10] [desktop] can't be started or the screen is black
How to deal with the relationship between colleagues
Appscan installation steps
Write a program to judge whether the elements contained in a vector < int> container are 9.20: exactly the same as those in a list < int> container.
Learning XML DOM -- a typical model for parsing XML documents
Canoe - description of common database attributes
Usage of case when then else end statement
1. Circular nesting and understanding of lists
Quick sort (C language)
试题库管理系统–数据库设计[通俗易懂]