I am trying to connect the mysql with PDO but having a problem.PDOException is throwing this problem :
PDO::__construct(): The server requested authentication method unknown to the client [mysql_old_password]
SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client
I have tried SET old_passwords = 0;
But still not working.