PDO MySQL安装,VPS使用,VPS配置,微评马 - VPS主机点评

PDO MySQL安装


admin 发布于 2013-10-15 16:51     评论:0    浏览:7646

PDO MySQL安装步骤

wget http://pecl.php.net/get/PDO_MySQL-1.0.2.tgz
tar xzvf PDO_MySQL-1.0.2.tgz
cd PDO_MYSQL-1.0.2
/usr/local/php/bin/phpize
./configure –with-php-config=/usr/local/php/bin/php-config
make && make install
最后如果phpinfo里仍然没有显示支持,则在PHP.INI里加一句
extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/pdo_mysql.so
安装过程可能出现的错误

a
You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
wget http://sourceforge.net/projects/re2c/files/re2c/0.13.5/re2c-0.13.5.tar.gz/download
tar -zxvf re2c-0.13.5.tar.gz
cd re2c-0.13.5
./configure && make && make install
b
checking for mysql_config… not found
configure: error: Cannot find MySQL header files under
解决
ln -s /usr/local/mysql/bin/mysql_config /usr/bin/mysql_config

3 顶一下
如果您要进行评论信息,请先 登录 或者 快速注册 。