Estou tentando fazer uma conexão com o meu db, porém ele sempre fica dando esse erro e eu não sei o que fazer.
Erro:
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
Código:
try {
$conn = new PDO("mysql:host=127.0.0.1;dbname=projeto", $user, $pass);
} catch (PDOException $e) {
die("Falha: " . $e->getMessage());
}