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

mysql
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';