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
yum quick install mysql Add yum repository rpm -U...
1. Demand The local test domain name is the same ...
Table of contents 1. Background 2. Operation step...
When developing and debugging a web application, ...
introduce If you are using an OSS storage service...
Table of contents Functional Components How to wr...
Beautiful code is the foundation of a beautiful we...
Since Alibaba Cloud's import of custom Ubuntu...
Preface In the process of continuous code deliver...
Maybe everyone knows that js execution will block...
Not using lazy loading import Vue from 'vue...
The Docker publishing method provides many conven...
Now many people are joining the ranks of website ...
Generate a certificate chain Use the script to ge...
Table of contents Install Dependencies Install bo...