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