ERROR 1862 (HY000): Your password has expired. To log in you must change it using a .....

ERROR 1862 (HY000): Your password has expired. To log in you must change it using a .....

error message:

ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords

Cause of the problem:

It may be that during the installation of MySQL, after initializing MySQL through mysqld --initialize and generating a temporary password, you did not directly connect to MySQL, restarted the service or restarted the machine, etc., causing the password to become invalid.

Solution:

1. Modify the my.cnf configuration file

vi /etc/my.cnf

2. Restart the mysql service

You can also restart it using service mysqld restart. Since I installed MySQL via the binary source package, this method of starting it currently reports an error. So I restarted using the command in the support-files directory under the installation directory, as shown below

3. Password-less login

4. Same as step 1, delete the newly added skip-grant-tables = 1

5. Same as step 1, restart the mysql service

6. Use the new password root to log in to mysql

Well, this article ends, I hope it will be helpful to you!

You may also be interested in:
  • Oracle prompts that the login password has expired. Perfect solution
  • Solutions to Oracle user password expiration and user lockout
  • Complete solution to oracle password expiration
  • How to deal with the problem of MySQL users forgetting their passwords or password expiration
  • How to change the password expiration time of Oracle database users to never expire
  • Detailed explanation of MySQL user password expiration function
  • Detailed explanation of password expiration in Oracle 11g
  • How to modify Oracle 11G password after 180 days expiration
  • MySQL password expired, resulting in failure to connect to MySQL
  • ORA-28002 Oracle 11g password expiration problem solution

<<:  Graphical tutorial on installing JDK1.8 under CentOS7.4

>>:  Detailed explanation of the use of HTML canvas and page storage technology in JavaScript

Recommend

How to build a React project with Vite

Table of contents Preface Create a Vite project R...

Summary of the Differences between SQL and NoSQL

Main differences: 1. Type SQL databases are prima...

MySQL query syntax summary

Preface: This article mainly introduces the query...

CSS3 new layout: flex detailed explanation

Flex Basic Concepts Flex layout (flex is the abbr...

Detailed explanation of MySQL transaction processing usage and example code

MySQL transaction support is not bound to the MyS...

Notes on using the blockquote tag

<br />Semanticization cannot be explained in...

Detailed tutorial on installing the jenkins container in a docker environment

Recommended Docker learning materials: https://ww...

Details on using bimface in vue

Table of contents 1. Install Vue scaffolding 2. C...

Summary of 6 solutions for implementing singleton mode in JS

Preface Today, I was reviewing the creational pat...

Solution to changing the data storage location of the database in MySQL 5.7

As the data stored in the MySQL database graduall...

CSS3 realizes the animation effect of lotus blooming

Let’s look at the effect first: This effect looks...

vue-cropper component realizes image cutting and uploading

This article shares the specific code of the vue-...

Solution for applying CSS3 transforms to background images

CSS transformations, while cool, have not yet bee...