【发布时间】:2016-01-23 04:42:09
【问题描述】:
我正在尝试将 mysql 与 PDO 连接,但遇到了问题。PDOException 引发了这个问题:
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
我试过SET old_passwords = 0; 但还是不行。
【问题讨论】: