emysqli::real_connect(): The server requested authentication method unknown to the client [sha256_password] code example
Example: The server requested authentication method unknown to the client [cachin g_sha2_password]
ALTER USER 'mysqlUsername'@'localhost' IDENTIFIED WITH mysql_native_password BY 'mysqlUsernamePassword';