PHP dynamic compilation and installation of mysqlimysqlmysqlnd

Source: Internet
Author: User
: This article mainly introduces PHP dynamic compilation and installation of mysqlimysqlmysqlnd. For more information about PHP tutorials, see. Download the corresponding version of PHP source code and unzip, my version is php-5.4.16

Go to ext/mysqlnd in the source code directory and compile mysqlnd. so.

Cp config9.m4 config. m4sed-ie "s {ext/mysqlnd/php_mysqlnd_config.h {config. h {"mysqlnd_portability.h # modify the source file phpize # run phpize and add. /configure configuration. /configure -- with-php-c/to/php-config # the configuration file is php-configsudo make & sudo make install under the bin of the original php # compile and install

If you do not know where php-config is, you can use this command to find

sudo find /-name php-config

Go to ext/mysql and compile mysql. so

phpize./configure --with-php-config=/path/to/php-config--with-mysql=mysqlndmake && make install

Go to ext/mysqli and compile mysqli. so.

phpize./configure --with-php-config=/path/to/php-config--with-mysqli=mysqlndmake && make install

Add in php. ini

extension=mysqlndextension=mysqlextension=mysqli

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above introduces the PHP dynamic compilation and installation of mysqli mysql mysqlnd, including some content, hope to be helpful to friends who are interested in PHP tutorials.

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.