php环境中没有mysql,我如何编译mysql的扩展?
PHP中文网
PHP中文网 2017-05-16 13:00:55
0
4
302

我的lnmp环境,使用阿里云rds数据库,环境中没有mysql,我怎么通过phpize安装mysql,mysqli扩展

PHP中文网
PHP中文网

认证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中已经被废弃,只有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 canphp7/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
          About us Disclaimer Sitemap
          php.cn:Public welfare online PHP training,Help PHP learners grow quickly!