当前位置:Gxlcms > 数据库问题 > centos7.0 安装pdo_mysql扩展

centos7.0 安装pdo_mysql扩展

时间:2021-07-01 10:21:17 帮助过:21人阅读

1:进入到源码包 /usr/local/php-7.1.6/ext/pdo_mysql 执行/usr/local/php-7.1/bin/phpize

如果报如下错误:

Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script

yum -y install  autoconf

2:

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

3:make&make install

4:Installing shared extensions:     /usr/local/php-7.1/lib/php/extensions/no-debug-zts-20160303/

修改php.ini加入
extension="/usr/local/php-7.1/lib/php/extensions/no-debug-zts-20160303/pdo_mysql.so"

 

centos7.0 安装pdo_mysql扩展

标签:find   nbsp   mysql   ons   environ   har   config   扩展   please   

人气教程排行