1. Problem Forgot password for mysql5.7 under linux 2. Solution • Step 1: Open the mysql5.7 configuration file my.cnf and add a line to it: skip-grant-tables Save and exit (:wq) • Step 2: Restart mysql •Step 3: Log in to mysql and change the password Log in with the root account: Use the mysql database in mysql: mysql> use mysql; Change password: Refresh the database: Exit: quit; Note: The password field in the user table of MySQL 5.7 has been changed to the authentication_string field. At this time, the command you need to enter is update user set authentication_string = password("Szfore_68638") where user="root"; • Step 4: Open the mysql5.7 configuration file my.cnf, delete the line you just added: skip-grant-tables, save and exit (:wq) Summarize The above is what I introduced to you about how to solve the problem of forgetting the password of Mysql5.7 under Linux. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time! You may also be interested in:
|
<<: Basic implementation method of cross-component binding using v-model in Vue
>>: mysql database to retrieve the statements of seconds, minutes, hours and days before and after
Table of contents 1. Script vim environment 2. Ho...
10.4.1 The difference between Frameset and Frame ...
The previous article introduced how to achieve a ...
This article compares and summarizes four ways of...
I saw this question in the SQL training question ...
This article mainly introduces how to specify par...
Problem: The null type data returned by mybatis d...
This article shares the download, installation an...
Table of contents Jenkins installation Install Ch...
At first, I wanted to modify the browser scroll b...
Shtml and asp are similar. In files named shtml, s...
/****************** * Linux kernel time managemen...
This article example shares the specific code of ...
This article shares the specific code for JavaScr...
Table of contents 1. Index Type 1. B+ Tree 2. Wha...