Home > Backend Development > PHP Tutorial > Add mysqli extension to php_PHP tutorial

Add mysqli extension to php_PHP tutorial

WBOY
Release: 2016-07-12 09:04:04
Original
1206 people have browsed it

php adds mysqli extension

Any PHP extension can be compiled and installed separately in the PHP source code package.
Because phpmyadmin requires the mysqli extension, the module is compiled and installed. The process and some problems are recorded as follows:
php compilation installation path/usr/local/php5.6
mysql compilation and installation path/usr/local/mysql5.6
Enter the mysqli extension path of the php source code installation package
# cd /tmp/php-5.6.15/ext/mysqli
Generate configure file
# /usr/local/php5.6/bin/phpize
Configuration
# ./configure --with-php-config=/usr/local/php5.6/bin/php-config /
--with-mysqli=/usr/local/mysql/bin/mysql_config
Compile and install. If there are no errors during the configuration process, if you encounter any errors during compilation, you need to recompile PHP and append
--with-mysql=shared, mysqlnd --enable-sockets=shared These two parameters can be recompiled
# make && make install
Installing shared extensions: /usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/
Installing header files: /usr/local/php5.6/include/php/
View so file
ls /usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/
mysqli.so
Modify php.ini
Just add it below the Dynamic Extensions comment
extension=/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/mysqli.so

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1075798.htmlTechArticlephp add mysqli extension. Any php extension can be compiled and installed separately in the php source code package. This is because phpmyadmin requires mysqli extension, compile and install the module, the process and some problems are recorded as follows:...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template