首页 > 代码库 > centos7.0 安装pdo_mysql扩展
centos7.0 安装pdo_mysql扩展
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扩展
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。