Fault site: Log in to the MySQL server and get this error no matter what command you execute mysql> show databases; ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. mysql> use test; ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement. ... ... How could this happen? Am I on a fake server? Cause analysis: This is mainly controlled by a parameter default_password_lifetime, see the official explanation Look carefully, the Note information is sometimes more useful than the above information (I usually ignore the English notes, but it is possible that the part you ignore may also help performance) Problem solving: In the open source world, we are not afraid of errors, because only when errors are reported can we have solutions. Let's take a look at your environment. mysql> select version(); +--------------+ | version() | +--------------+ | 5.7.10-3-log | +--------------+ 1 row in set (0.01 sec) mysql> show variables like 'default_password_lifetime'; +---------------------------+-------+ | Variable_name | Value | +---------------------------+-------+ | default_password_lifetime | 360 | +---------------------------+-------+ 1 row in set (0.00 sec) I see. Then change the password. alter user user() identified by "123456"; The problem was successfully solved! The current user can successfully execute commands within the scope of his permissions. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Detailed explanation of permission management commands in Linux (chmod/chown/chgrp/unmask)
>>: Detailed steps for building a React application with a Rails API
Preface I have installed MySQL 5.6 before. Three ...
I often see some circular wave graphics on mobile...
Preface Hello everyone, this is the CSS wizard - ...
MySQL (5.6 and below) parses json #json parsing f...
After nginx is compiled and installed and used fo...
1. pc-reset PC style initialization /* normalize....
Installation Environment Centos Environment Depen...
The Golden Rule Always follow the same set of cod...
Table of contents What is MySQL NDB Cluster Preli...
CSS image splicing technology 1. Image stitching ...
Table of contents topic analyze Objects of use So...
Table of contents DOMContentLoaded and load What ...
The root account of mysql, I usually use localhos...
Say it in advance Nodejs reads the database as an...
The previous article introduced several methods f...