PHP 中的 mysqli 扩展
当做好lamp架构之后,准备用phpadmin进行数据库管理时,出现缺少“mysqli ” 扩展:如下:版本情况:
apache:2.2.21
mysql:5.5.22
php:5.2.17
phpadmin:3.5.1
缺少 mysqli 扩展。请检查 PHP 配置。
http://linuxkeep.blog.运维网.com/attachment/201206/26/1010009_1340703910ubaH.png
解决办法:
扩展mysqli
1、编译的时候加上参数:--with-mysqli=/usr/local/mysql/bin/mysql_config
http://linuxkeep.blog.运维网.com/attachment/201206/26/1010009_1340703911SYnT.png
我这里的编译参数是:
--prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-config-file-path=/usr/local/php/etc --with-mysql=/usr/local/mysql/ --with-libxml-dir=/usr/local/libxml2 --with-gd --with-jpeg-dir --with-png-dir --with-freetype-dir --with-iconv-dir --with-zlib-dir --with-openssl --with-mcrypt=/usr/local/libmcrypt --enable-soap --enable-gd-native-ttf --enable-ftp --enable-mbstring --enable-exif --disable-ipv6 --disable-cgi --disable-cli --with-mysqli=/usr/local/mysql/bin/mysql_config
2、重启apache再看,ok了.
http://linuxkeep.blog.运维网.com/attachment/201206/26/1010009_13407039128qHx.png
http://linuxkeep.blog.运维网.com/attachment/201206/26/1010009_1340703912ffix.png
http://linuxkeep.blog.运维网.com/attachment/201206/26/1010009_1340703913qOpC.png
页:
[1]