amh4.2安装pdo

在amh里面搜索pdo模块并安装


下载pdo 解压 

wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz

tar -zxvf PDO_MYSQL-1.0.2.tgz


打开pdo目录 进行编译

cd PDO_MYSQL-1.0.2

/usr/local/php/bin/phpize

./configure --with-php-config=/usr/local/php/bin/php-config -with-pdo-mysql=/usr/local/mysql/bin/mysql_config

make && make install


记住pdo目录

/usr/local/php/lib/php/extensions/no-debug-non-zts-20xxxxx/pdo_mysql.so

编辑php.ini

vim /etc/php.ini


找到最下面一行 把路径改了

Last modification:January 1st, 1970 at 08:00 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment