Home > Backend Development > PHP Problem > phpmyadmin2054 error

phpmyadmin2054 error

angryTom
Release: 2023-02-27 16:22:01
Original
3329 people have browsed it

phpmyadmin2054 error

phpmyadmin2054 error

This error occurs because MySQL 8 uses a new password verification plug-in by default: caching_sha2_password, while the previous PHP The mysqlnd included in the version cannot support this kind of verification. You need to reset the mysql password. Because the previous root password can no longer be used, you cannot use the traditional password modification method, but directly reset the password:

1. First modify the mysql configuration file my.cnf

Set any user to log in to obtain all permissions. Add a sentence in the [mysqld] section: skip-grant- tables and then restart mysql

2. Execute the sql to change the password:

UPDATE user SET Password = password ('new-password') WHERE User = 'root';
flush privileges;
Copy after login

3. Restart mysql again, it should be fine

For more PHP related knowledge, please visit PHP Chinese website!

The above is the detailed content of phpmyadmin2054 error. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template