当前位置:网站首页>How to change the password after forgetting the MySQL password (the latest version of 2022 detailed tutorial nanny level)
How to change the password after forgetting the MySQL password (the latest version of 2022 detailed tutorial nanny level)
2022-06-29 06:20:00 【Concision.】
forget mysql How to change the password after the password
matters needing attention
- Two in all cmd window , Each one should be opened as an administrator , And after changing the password , Close the first one first
Skip password verification mysql serviceOf cmd window , Restart mysql, Otherwise it will go wrong . - Before changing the password ,mysql It has to be closed .
step
1. With Administrator identity open cmd window , find mysql Install the path and open bin Catalog 
2. stay bin Under the path Execute the following statement , Enable skip password verification mysql service
mysqld --console --skip-grant-tables --shared-memory

If an error occurs during this step , It may be mysql It is still in the process of startup but not closed , You need to go to the task manager to find the relevant task and end it , Then re execute the command .
3. After the last step is successful , Open a new... As an administrator cmd window ( The original cmd The window cannot be closed yet ), Find the same mysql Installed bin route , Execute... Under this path mysql -u root -p, And then go back ( No password required ).
4. perform use mysql sentence 
5. perform flush privileges; sentence 
5. perform alter user [email protected] identified by '123456'; sentence , Change the password to 123456( Fill in the password you want here )
6. perform exit sentence 
7. Take the first one. cmd The window closed , In the second cmd Window re execution net start mysql start-up mysql
8. Execute statement mysql -uroot -p, Enter the password you just set to log in successfully

边栏推荐
- 2022 recommended trend toy blind box industry research report industry development prospect market analysis white paper (the attachment is a link to the network disk, and the report is continuously up
- 2022.02.15
- Will the order of where conditions in MySQL affect the union index? Will where 1 =1 affect the use of the index? Does where 1 =1 affect the use of indexes?
- ES6 Modularization: export /import
- 2022.02.14 - 239. A single element in an ordered array
- The most complete machine learning model training process
- Problems with MySQL database query
- String and variable are spliced into variable name
- Servlet version conflict causes page 404
- Ctrip launched the "3+2" office mode. Are you sour?
猜你喜欢

Test Development - ten years of sharpening one sword (VII) interface test tool postman

What is the "danksharding" of V God Kop on Valentine's day?
![[high concurrency] deeply analyze the callable interface](/img/fb/89ebd5592f1383c8015a47cec78a59.jpg)
[high concurrency] deeply analyze the callable interface

Establishing the development environment of esp8266

Hyperledger Fabric 2. X custom smart contract
![[high concurrency] deeply analyze the callable interface](/img/17/93056547aa1a2b342e1b159b7c41c2.jpg)
[high concurrency] deeply analyze the callable interface

Agile invincible event

Fault: NetBt log for id4321
![[C language series] - branch and loop statements](/img/bf/656c9189b4ab4387c5acab1c4a2804.jpg)
[C language series] - branch and loop statements

MySQL add / delete / modify query SQL statement exercise yyds dry goods inventory
随机推荐
Browser local storage
Hyperledger Fabric 2. X custom smart contract
Conditional test, if and case conditional test statements of shell script
Week 10 - task 3- from point to circle to cylinder
Two houses with different colors and the farthest distance
How does MySQL implement distributed locks?
Ghost in the Log4Shell
Review of MySQL knowledge points
Design of leetcode simple problem goal parser
Quickly write MVVM code using source generators
Failure: unable to log in to "taxpayer equity platform"
Spark saving to external data source
National Defense University project summary
Fault: ntfrs warning log for id13562
64 commonly used terms for data analysis, really all!
Meta metauniverse female safety problems occur frequently. How to solve the relevant problems in the metauniverse?
Is there any difference between a=a+b and a+=b?
Use of sed in shell script
Can I cast int to a variable of type byte? What happens if the value is larger than the range of byte type?
Leetcode theme [array] -217- there are duplicate elements