Php add mysqli extension _ PHP Tutorial

Source: Internet
Author: User
Tags zts
Add the mysqli extension in php. To add mysqli extension to php, any php extension can be compiled and installed separately in the php source code package. here, because phpmyadmin requires mysqli extension, compile this module for installation. the process and some problems are recorded as follows: add mysqli extension in php
Any php extension can be compiled and installed separately in the php source code package.

The phpmyadmin requires mysqli extension to compile the module for installation. the process and some problems are recorded as follows:

Php compilation and installation path/usr/local/php5.6

Mysql compilation and installation path/usr/local/mysql5.6

Go to the mysqli extension path of the php source code installation package

# Cd/tmp/php-5.6.15/ext/mysqli

Generate the 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 PHP. if there are no errors during the configuration process and any errors are encountered during compilation, re-compile PHP and add

-- With-mysql = shared, mysqlnd -- enable-sockets = shared, and then re-compile the two parameters.

# 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 the so file

Ls/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/

Mysqli. so

Modify php. ini

Add the following content to the Dynamic Extensions comment.

Extension =/usr/local/php5.6/lib/php/extensions/no-debug-non-zts-20131226/mysqli. so

Any php extension can be compiled and installed separately in the php source code package. because phpmyadmin requires mysqli extension, compile the module for installation. the process and some problems are recorded as follows :...

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.