「ThinkPHP3.2.2」

Error List

#1: 系统不支持:mysql

🙁
系统不支持:mysql
错误位置 FILE: /mnt/extra320g/www/quhongbao/ZPHP/Library/Think/Db/Driver/Mysql.class.php  LINE: 27

原因:不知道怎么办的时候就看源码。在Mysql.class.php LINE: 26,调用了 extension_loaded()。我检查了 PHP 的编译参数,结果只有 PDO的API。编译的时候未指定使用MySQL API。
解决:重新编译PHP,并指定参数–with-mysql选项。
更多细节,参考:PHP 中关于 MySQL 驱动与MySQL API