0

I just grabbed the latest version of MAMP Pro (3.1) and installed it only to find that it removes MySQL PDO entirely. That's a problem since the framework I'm using requires PDO to connect to the database. I tried grabbing the extensions from the old version of MAMP, but it immediately throws errors.

How do I get MySQL PDO back for MAMP 3.1? I've looked on the site and can't find a downloads page to roll back to the older version.

4

1 回答 1

1

在 MAMP 3.1 中,他们已经切换到mysqlnd实际包括 mysql、mysqli 和 PDO。问题是他们已经删除了所有的 PDO 设置,php.ini因为他们没有使用 MySQL PDO 扩展。由于此更改,PHP 从命令行查看了错误的 MySQL 套接字文件。为了解决这个问题,我php.ini使用以下行更新了文件:

pdo_mysql.default_socket = /Applications/MAMP/tmp/mysql/mysql.sock

在那之后,一切又开始工作了。

如果 Appsolute 的任何人看到这一点,请重新将 PDO 设置添加到 INI 文件中,这样就不会发生这种事情!

于 2015-03-25T23:57:42.457 回答