当前位置:网站首页>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
边栏推荐
- If function in SQL
- MBG combat zero basis
- 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?
- Day06 list job
- Introduction to canoe automatic test system
- thread
- 本地Mysql忘记密码的修改方法(windows)
- Regular expression
- software test
- PHP programming language (1) - operators
猜你喜欢
[Galaxy Kirin V10] [server] iSCSI deployment
shell awk
Personal thoughts on the development of game automation protocol testing tool
Hidden C2 tunnel -- use of icmpsh of ICMP
Oracle11g | getting started with database. It's enough to read this 10000 word analysis
Write a thread pool by hand, and take you to learn the implementation principle of ThreadPoolExecutor thread pool
Take advantage of the world's sleeping gap to improve and surpass yourself -- get up early
Quick sort (C language)
Appscan installation steps
SQL greatest() function instance detailed example
随机推荐
[test theory] test process management
JMeter assembly point technology and logic controller
Summary of automated testing framework
Simple understanding of generics
Fundamentals of software testing
Fundamentals of database operation
XMIND installation
本地Mysql忘记密码的修改方法(windows)[通俗易懂]
Common system modules and file operations
1. Circular nesting and understanding of lists
Canoe - the third simulation project - bus simulation - 2 function introduction, network topology
Postman advanced
[Galaxy Kirin V10] [server] failed to start the network
Usage of case when then else end statement
[Galaxy Kirin V10] [server] iSCSI deployment
JMeter correlation technology
Heartbeat报错 attempted replay attack
[Galaxy Kirin V10] [server] FTP introduction and common scenario construction
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.
Ten key performance indicators of software applications