当前位置:网站首页>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
边栏推荐
- F12 clear the cookies of the corresponding web address
- Elevator dispatching (pairing project) ③
- Day7 list and dictionary jobs
- Appscan installation error: unable to install from Net runtime security policy logout appscan solution
- Simple understanding of string
- /*Write a loop to output the elements of the list container in reverse order*/
- Huge number (C language)
- Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
- Detailed array expansion analysis --- take you step by step analysis
- Postman advanced
猜你喜欢
![[Galaxy Kirin V10] [server] set time synchronization of intranet server](/img/f8/0847314029930840c91bce97ccd961.jpg)
[Galaxy Kirin V10] [server] set time synchronization of intranet server
![[Galaxy Kirin V10] [desktop and server] FRP intranet penetration](/img/54/7d1b8b7b8226e2820635dd04b92d1c.jpg)
[Galaxy Kirin V10] [desktop and server] FRP intranet penetration
![[Galaxy Kirin V10] [desktop] printer](/img/ab/066923f1aa1e8dd8dcc572cb60a25d.jpg)
[Galaxy Kirin V10] [desktop] printer

Canoe - description of common database attributes

Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution

JMeter Foundation

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

JMeter correlation technology

On binary tree (C language)
![[Galaxy Kirin V10] [desktop] can't be started or the screen is black](/img/68/735d80c648f4a8635513894c473860.jpg)
[Galaxy Kirin V10] [desktop] can't be started or the screen is black
随机推荐
Capl: timer event
Ten key performance indicators of software applications
software test
Appscan installation error: unable to install from Net runtime security policy logout appscan solution
Get the data of the top 100 headlines today with Tianxing data
Hidden C2 tunnel -- use of icmpsh of ICMP
Fundamentals of database operation
TS type gymnastics: illustrating a complex advanced type
Post man JSON script version conversion
Const's constant member function after the function; Form, characteristics and use of inline function
PHP programming language (1) - operators
Elevator dispatching (pairing project) ③
[Galaxy Kirin V10] [desktop and server] FRP intranet penetration
Summary of collection: (to be updated)
2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
[Galaxy Kirin V10] [server] NFS setup
MBG combat zero basis
Usage of case when then else end statement
Performance test process
Discussion | has large AI become autonomous? Lecun, chief scientist of openai