PHP adds support for mysqli

Source: Internet
Author: User
Tags php and mysql

PHP adds support for mysqli

I used the yum installed PHP and MySQL under Fedora, but found that PHP does not support MYSLQI, only compiles a mysqli extension to PHP. Here's how:1. Download PHP2. Go to the extensions directory,Cd/php-5.3.10/ext/mysqli3.phpize Generation Configure4. IfThe following error occurred when compiling PHP support for mysqli: Checking whether to enable embedded mysqli ... no
Checking for mysql_set_server_option in-lmysqlclient ... no
Configure:error:wrong MySQL library version or Lib not found. Check Config.log for more information.
The following method is used to solve the problem:
# yum-y Install Mysql-devel
# phpize
#./configure--with-php-config=/php-config--enable-embedded-mysqli=shared--enable-shared
# Make && make install
At this point the screen will print the path generated by mysqli.so, load in php.ini, restart php-cgi.

PHP adds support for mysqli

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.