Compiling PHP 5.1.6 with PDO MySQL

后端 未结 2 1509
迷失自我
迷失自我 2021-01-06 16:30

I originally asked this question on ServerFault and haven\'t got any response and I figure it\'s programming related so, here goes...


A while ago a large clien

2条回答
  •  青春惊慌失措
    2021-01-06 16:47

    No need to recompile whole PHP. Just compile PDO_MYSQL module alone. Use pecl to install it:

    pecl install PDO_MYSQL
    

    For that you will need phpize installed. On Debian machines it is provided by package called php5-dev. Afterwards just add it to your php.ini and restart Apache.

    If you are on Debian/Ubuntu system PDO_MYSQL is provided in package called php5-mysql

提交回复
热议问题