Fix: PDOException: SQLSTATE[HY000] [2054] or WordPress Install Error

MySQL Logo

Issue:
If you’re seeing this error after setting up a database and user:

PDOException: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client

OR

If you’re setting up WordPress and the installation is unable to connect to the database.

Solution:

ALTER USER 'username'@'localhost' IDENTIFIED WITH mysql_native_password BY 'p@s$w0rdHere';

Run above prior to reinstalling MYSQL or other complex attempts at a fix.

1 Comment

  1. Great article I’m new not only to Hive projects but the crypto world all together. This article gave me a lot of informaiton about W
    ITNESSES responsibilities and duties. Thanks for taking the time to write it!

Leave a Reply

Your email address will not be published.


*