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.

Be the first to comment

Leave a Reply

Your email address will not be published.


*