84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
我的lnmp环境,使用阿里云rds数据库,环境中没有mysql,我怎么通过phpize安装mysql,mysqli扩展
认证0级讲师
DecorationPDO吧,不需要mysqlenvironment.And mysql is connected through socket, so no mysql environment is required.
PDO
mysql
https://pecl.php.netGo here to download the source code package, compile and install it.
Didn’t know youphp什么版本的,mysql扩展在php7中已经被废弃,只有mysqli和mysqlnd扩展下面简要说明php7中怎么编译安装mysqliExtension
php
php7
mysqli
mysqlnd
$ cd php7/ext/mysqli $ phpize Configuring for: PHP Api Version: 20160303 Zend Module Api No: 20160303 Zend Extension Api No: 320160303 $ ./configure $ make && make install
Then, you canphp7/ext/mysqli/modules目录下看到编译好了的mysqli.so
php7/ext/mysqli/modules
mysqli.so
It doesn’t matter what you use, these extensions are enabled by default in the current PHP version, and there is no need to handle them manually.
Decoration
PDO
吧,不需要mysql
environment.And mysql is connected through socket, so no mysql environment is required.
https://pecl.php.net
Go here to download the source code package, compile and install it.
Didn’t know you
php
什么版本的,mysql
扩展在php7
中已经被废弃,只有mysqli
和mysqlnd
扩展下面简要说明
php7
中怎么编译安装mysqli
ExtensionThen, you can
php7/ext/mysqli/modules
目录下看到编译好了的mysqli.so
It doesn’t matter what you use, these extensions are enabled by default in the current PHP version, and there is no need to handle them manually.