To solve the 1862 (phpmyadmin)/1820 (mySQL) Error in mysql, 1862 phpmyadmin

Source: Internet
Author: User

To solve the 1862 (phpmyadmin)/1820 (mySQL) Error in mysql, 1862 phpmyadmin

Problems Found

I have been running well before, And suddenly mysql cannot work. An error is reported after the request command:ERROR 1820 (HY000): You must set password before executing this statementYou cannot log on using the phpMyAdmin management tool. The error is displayed: #1862 cannot log on to the MySQL server.

Troubleshooting

Log on to the mysql server and use the mysql Command for logon and operations.

1. log on to mysql:Mysql-uroot-proot

(Root is my account and password)

2. Check whether error 1820 is reported. Run the following statement:Mysql> select 1;

(An error is returned:ERROR 1820 (HY000): You must set password before executing this statement)

3. Set the new password:Mysql> set password = password ('root ');

(Because I do not need to change the password, reset the password to root again)

4. Try again to see if error 1820 is returned. Execute the statement:Mysql> select 1;

(The following data is returned, indicating that the problem has been resolved !)

Mysql> select 1; +-+ | 1 | +-+ | 1 | +-+ 1 row in set (0.00 sec)

Summary

The above is all about how to solve the Mysql 1862 (phpmyadmin)/1820 (mysql) error. I hope this article will help you in your study or work, if you have any questions, you can leave a message.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.