当前位置:网站首页>Local MySQL forget password modification method (Windows) [easy to understand]
Local MySQL forget password modification method (Windows) [easy to understand]
2022-07-04 11:03: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/149139.html Link to the original text :https://javaforall.cn
边栏推荐
- I What is security testing
- CAPL: on sysVar_ Update difference on sysvar
- Jemeter script recording
- 51 data analysis post
- Is Sanli futures safe? How to open a futures account? How to reduce the handling charge of futures at present?
- Daemon xinted and logging syslogd
- 2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
- Canoe the second simulation engineering xvehicle 3 CAPL programming (operation)
- [machine] [server] Taishan 200
- Snake (C language)
猜你喜欢
Climb Phoenix Mountain on December 19, 2021
Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
Dichotomy search (C language)
[test theory] test process management
[Galaxy Kirin V10] [desktop] build NFS to realize disk sharing
Replace() function
Detailed array expansion analysis --- take you step by step analysis
MFC document view framework (relationship between classes)
XMIND installation
Deepmind proposed a Zuan AI, which specially outputs network attack language
随机推荐
Network connection (II) three handshakes, four waves, socket essence, packaging of network packets, TCP header, IP header, ACK confirmation, sliding window, results of network packets, working mode of
Digital simulation beauty match preparation -matlab basic operation No. 6
Using SA token to solve websocket handshake authentication
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.
Some tips on learning database
Day7 list and dictionary jobs
/*Rewrite the program, find the value of the element, and return the iterator 9.13: pointing to the found element. Make sure that the program works correctly when the element you are looking for does
Oracle11g | getting started with database. It's enough to read this 10000 word analysis
Canoe: the fourth simulation project -- bug debugging experience
[Galaxy Kirin V10] [server] soft RAID configuration
Elevator dispatching (pairing project) ①
2022 AAAI fellow release! Yan Shuicheng, chief scientist of sail, and Feng Yan, Professor of Hong Kong University of science and technology, were selected
VPS安装Virtualmin面板
Failed to configure a DataSource: ‘url‘ attribute is not specified... Bug solution
[Galaxy Kirin V10] [server] iSCSI deployment
Communication layer of csframework
Quick sort (C language)
DNS hijacking
Network connection (III) functions and similarities and differences of hubs, switches and routers, routing tables and tables in switches, why do you need address translation and packet filtering?
F12 clear the cookies of the corresponding web address