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
Table of contents Problem description: Installati...
Table of contents We have written about drag and ...
We know that the commonly used events in JS are: ...
Generally, during Qingming Festival, the National...
Key Takeaways: 1. Mastering CSS3 3D animation 2. ...
Problem description: After the front-end deletes ...
1. What is deadlock? The official definition is a...
The complete syntax of the select statement is: S...
This article example shares the specific code of ...
This article example shares the specific code of ...
I had been using MySQL 5.7 before, but because My...
This article shares the specific code of NodeJS t...
Preface Starting from MySQL 5.7.11, MySQL support...
1. What is We can split the communication between...
This is not actually an official document of IE. I...