亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

There is no mysql in the php environment, how can I compile the mysql extension?
PHP中文網(wǎng)
PHP中文網(wǎng) 2017-05-16 13:00:55
0
4
462

My lnmp environment uses Alibaba Cloud RDS database. There is no mysql in the environment. How can I install mysql and mysqli extension through phpize

PHP中文網(wǎng)
PHP中文網(wǎng)

認證0級講師

reply all(4)
大家講道理

DecorationPDO吧,不需要mysqlenvironment.
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 youphp什么版本的,mysql擴展在php7中已經(jīng)被廢棄,只有mysqlimysqlnd擴展
下面簡要說明php7中怎么編譯安裝mysqliExtension

$ 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 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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template