您好我刚刚安装mariadb来替换我的WHM / cpanel服务器中的mysql但是当我使用mysqli extesion运行网站时我得到连接到db的错误然后我在编译php时调试输出我看到了这个:
MySQL version '10.0.8' is neither 4 nor 5, skipping mysqli
如何使用最新版本的mariadb安装mysqli?我使用这种方法来构建所有扩展和模块:
/scripts/easyapache --build
但没有用,我无法安装mysqli扩展程序。
非常感谢你。答案 0 :(得分:0)
我刚刚使用以下方式手动配置和编译了php:
cd /home/cpeasyapache/src/
然后
php -i|grep configure
和
运行此命令
配置Command => './configure''--enable-bcmath' '--enable-calendar'' - enable-exif'' - enable-ftp' '--enable-gd-native-ttf'' - enable-libxml'' - enable-magic-quotes' '--enable-mbstring'' - enable-pdo = shared'' - enable-sockets' '--enable-zip'' - prefix = / usr / local' '--with-apxs2 = / usr / local / apache / bin / apxs'' - with-bz2' '--with-curl = / opt / curlssl /'' - with-curlwrappers' '--with-freetype-dir = / usr'' - with-gd' '--with-imap = / opt / php_with_imap_client /'' - with-imap-ssl = / usr' '--with-jpeg-dir = / usr'' - with-kerberos'' - with-libdir = lib64' '--with-libexpat-dir = / usr'' - with-libxml-dir = / opt / xml2 /' '--with-mcrypt = / opt / libmcrypt /'' - with-mysql = / usr' '--with MySQL的-袜子=的/ var / lib中/ MySQL的/的mysql.sock' '--with-mysqli = / usr / bin / mysql_config'' - with-openssl = / usr' '--with-openssl-dir = / usr'' - with-pcre-regex = / opt / pcre' '--with-pdo-mysql = shared'' - with-pdo-sqlite = shared'' - with-pic' '--with-png-dir = / usr'' - with-sqlite = shared'' - with-xmlrpc' '--with-xpm-dir = / usr'' - with-zlib'' - with-zlib-dir = / usr'