使用PHP 5.5在Amazon EC2上安装pdo_mysql

时间:2022-09-19 14:37:41

I've created an Amazon Linux AMI 2013.09.02 server and installed the following:

我创建了一个Amazon Linux AMI 2013.09.02服务器并安装了以下内容:

yum install php55 php55-mbstring php55-soap php55-gd php55-mcrypt php55-pdo httpd24

Apache and PHP work fine. But I need pdo_mysql.so for a legacy version of Doctrine (1.x). I cannot find out how to get pdo_mysql.so onto this system. That file is not within the /user/lib64/php/5.5/modules/ folder.

Apache和PHP工作得很好。但我需要pdo_mysql.so用于遗留版本的Doctrine(1.x)。我无法找到如何将pdo_mysql.so导入此系统。该文件不在/user/lib64/php/5.5/modules/文件夹中。

Suggestions?

建议?

1 个解决方案

#1


47  

Install the package php55-mysqlnd. I believe this will provide mysql support to PDO.

安装包php55-mysqlnd。我相信这将为PDO提供mysql支持。

Edit: For PHP 5.6 support, the package is php56-mysqlnd.

编辑:对于PHP 5.6支持,该包是php56-mysqlnd。

For PHP 7.0 support, the package is php70-mysqlnd.

对于PHP 7.0支持,该软件包是php70-mysqlnd。

For PHP 7.1 support, the package is php71-mysqlnd.

对于PHP 7.1支持,该软件包是php71-mysqlnd。

#1


47  

Install the package php55-mysqlnd. I believe this will provide mysql support to PDO.

安装包php55-mysqlnd。我相信这将为PDO提供mysql支持。

Edit: For PHP 5.6 support, the package is php56-mysqlnd.

编辑:对于PHP 5.6支持,该包是php56-mysqlnd。

For PHP 7.0 support, the package is php70-mysqlnd.

对于PHP 7.0支持,该软件包是php70-mysqlnd。

For PHP 7.1 support, the package is php71-mysqlnd.

对于PHP 7.1支持,该软件包是php71-mysqlnd。