MySQL password modification example detailed explanation I haven't used MySQL for a long time. Today, when I opened HediSQL to connect to MySQL, I found that I had forgotten the root password. I fiddled with the password modification operation for a while. I recorded it for later use. (Win10 native operation) Shut down the MySQL service: net stop MySQL Open a cmd console window as an administrator, enter the bin directory where MySQL is located, and execute mysqld --skip-grant-tables Open another cmd window and execute the mysql command directly (since the 2nd operation can access the table without authorization, you can log in directly with mysql without a username and password) Switch to mysql database: uses mysql; Modify the password field of the user table: update user set password = password ( '123456' ) where user = 'root'; Perform the refresh operation: flush privileges; Exit mysql: quit; Restart the MySQL service: net start MySQL Step 2: Start the MySQL server Step 3-7, change the user password Thank you for reading, I hope it can help you, thank you for your support of this site! You may also be interested in:
|
<<: JavaScript code to achieve a simple calendar effect
>>: Ubuntu basic settings: installation and use of openssh-server
1. Install Docker on the server yum install docke...
The problem is as follows: I entered the command ...
For individual webmasters, how to make their websi...
Related articles: Beginners learn some HTML tags ...
Table of contents Overview 1. Overview of input a...
Table of contents 1. Theory SERIALIZABLE REPEATAB...
MySQL 5.7.27 detailed download, installation and ...
XHTML is the basis of CSS layout. jb51.net has al...
1. parseFloat() function Make a simple calculator...
Convert code to image using html2canvas is a very...
Project Scenario Add a custom watermark to the en...
Preface The previous article introduced the insta...
This article example shares the specific code of ...
Preface You should often see this kind of special...
Installation, configuration, startup, login and c...