In the /etc/my.conf file, add the following line under [mysqld]: Remember to add it last under [mysqld], not under [ After saving, restart Mysql and execute directly in the Linux command line: mysql Enter OK To change your password: update mysql.user set password=password('root') where user='root' Result error: mysql> select host,user,password from user; ERROR 1054 (42S22): Unknown column 'password' in 'field list' desc user; Check the fields and find that there is no password field, but there is an update mysql.user set authentication_string=password('root') where user='root'; OK Delete skip-grant-tables under [mysqld] in the /etc/my.conf file Restart mysql Summarize The above is the perfect solution for forgetting the password of Mysql5.7.14 Linux version 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:
|
<<: Vue achieves seamless carousel effect
>>: Detailed explanation of the construction and use of Docker private warehouse
This article example shares the specific code of ...
Table of contents Overview in operator refinement...
This article example shares the specific code of ...
[Solution 1: padding implementation] principle: I...
In the front-end layout of the form, we often nee...
This article example shares the specific code of ...
Preface If you want to count the source of websit...
Local Windows remote desktop connects to Alibaba ...
This database query statement is one of 50 databa...
Prepare Environmental information for this articl...
I am currently learning MySQL. I am a complete no...
AI image cutting needs to be coordinated with PS....
illustrate: Using mysqldump –all-databases will e...
Preface: When we need to store decimals and have ...
1. Introduction Image maps allow you to designate...