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