1. Retrieve via --skip-grant-tables(Note: This operation must take security factors into consideration, because the database is not password protected during the period of setting password-free login) 1.1 Modify my.conf and add a new password-free login startup item
Add skip-grant-tables in the [mysqld] area After the addition is complete, press :wq to save and exit, and restart the mysqld service.
1.2 Enter the MySQL console in password-free mode and reset the password
When entering the password, just press Enter. Select database mysql
Execute the modify root command UPDATE user SET authentication_string = password ('Your password. The default password rule requires a combination of uppercase and lowercase letters, symbols, and numbers') WHERE User = 'root'; After successful execution, exit the MySQL database
1.3 Comment or delete the password-free login configuration item, restart the mysqld service and perform login verification
Restart the mysqld service
Log in with new password for verification
Enter the password and press Enter to submit and verify. This is the end of this article about retrieving the root password of MYSQL 5.7 under Linux (tested and available). For more information about retrieving the root password of MYSQL 5.7, please search the previous articles of 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! You may also be interested in:
|
<<: Html+CSS drawing triangle icon
>>: vue3 timestamp conversion (without using filters)
Copy code The code is as follows: <div class=&...
1. Syntax TIMESTAMPDIFF(unit,begin,end); Returns ...
Let's take a look at the code file structure ...
need Add a paging bar, which can jump to the page...
As shown below, if it were you, how would you ach...
Directly code: select 'bigint unsigned' a...
This article shares the specific steps of install...
This article shares a draggable login box impleme...
1. Check whether the MySQL service is started. If...
Table of contents Isolate Data Columns Prefix Ind...
Table of contents front end According to the abov...
1. Check the character set of MySQL show variable...
Table of contents 1. Related binlog configuration...
Table of contents What is Docker deploy 1. Pull t...
I have used the vi editor for several years, but ...