让php7.4支持 mysql扩展

编程语言
0 20

csroad
csroad 举报
06月26日 22:32
wget http://src.csroad.cn/wwwonline/mysql-d7643af.tar.gz
tar xvzf mysql-d7643af.tar.gz 
cd mysql-d7643af
phpize
phpize 
Configuring for:
PHP Api Version:         20190902
Zend Module Api No:      20190902
Zend Extension Api No:   320190902
./configure   --with-mysql-sock=/opt/pcbox/mysql/tmp/mysql.sock
make
 make install
Installing shared extensions:     /opt/pcbox/php7.4/lib/php/extensions/no-debug-non-zts-20190902/


修改 php.ini 相关配置

extension_dir = "/opt/pcbox/php7.4/lib/php/extensions/no-debug-non-zts-20190902/"
增加 mysql.so

重启 php-fpm  查找php-fpm当前pid

kill -USR2 6176


---ok  进行测试吧