Recommended reading: MySQL 8.0.19 supports account lock function after entering incorrect password three times (example) 1. Open a cmd window (preferably as an administrator), and run net stop mysql to stop the MySQL service. 2. Enable MySQL service that skips password verification 3. Open a new cmd window and start the mysql service 4. Enter the password and press the space key to skip 5. Leave the password blank use mysql update user set authentication_string='' where user='root'; exit 6. Close the MySQL service opened in step 2 (just close the window) 7. Restart the MySQL service and log in without a password 8. Change password ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '111111'; flush privileges Adding WITH mysql_native_password can ensure that navicat connection will not have any problems Summarize The above is the perfect solution to the problem of forgetting the password of MySQL 8.0.19 introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Docker's four network types principle examples
>>: WeChat applet to save albums and pictures to albums
Compared with vue2, vue3 has an additional concep...
This article will introduce a very interesting at...
Preface The optional chaining operator (?.) allow...
mysql permissions and indexes The highest user of...
1. Introduction to Linux .NET Core Microsoft has ...
Nginx's shared memory is one of the main reas...
What are the shutdown commands for Linux systems?...
Since myeclipse2017 and idea2017 are installed on...
This article uses examples to illustrate the tabl...
The isnull() function cannot be used as a substit...
Will UPDATE lock? Will the SQL statement be locke...
Separation of static and dynamic Dynamic requests...
Table of contents 1. Background 2. Table creation...
<br />Original URL: http://www.lxdong.com/po...
Triggers can cause other SQL code to run before o...