开发者

Enable MySQL with PHP

As per PHP documentation, mysql needs to be enabled with PHP.

http://www.php.net/manual/en/mysql.installation.php

PHP 5.0.x, 5.1.x, 5.2.x

MySQL is not enabled by default, nor is the MySQL library bundled with PHP. Read this FAQ for details on why. Use the --with-mysql[=DIR] configure option to inclu开发者_如何学Pythonde MySQL support. You can download headers and libraries from » MySQL.

I am using PHP version 5.1.6 How do I enable the MySQL extension to be used with PHP?


yum install php-mysql

This will pull in all dependencies.

EDIT: see also https://serverfault.com/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜