mysqli无法初始化模块

时间:2017-12-15 09:38:12

标签: php apache mysqli

我正在使用Apache2.4和PHP 7.1.12

在我提到的php.ini文件中 -

extension_dir = "ext"

抛出以下错误:

PHP Startup: mysqli: Unable to initialize module. Module compiled with module API=20151012 PHP compiled with module API=20160303

1 个答案:

答案 0 :(得分:1)

您正在使用PHP 7.1中为PHP 7.0编译的mysqli模块。由于这些版本具有不同的API,因此无法使用。获取PHP 7.1的模块 - 它们通常带有PHP发行版。

相关问题