Heim  >  Artikel  >  Backend-Entwicklung  >  phpmyadmin报“缺少 mysqli 扩展。请检查 PHP 配置”

phpmyadmin报“缺少 mysqli 扩展。请检查 PHP 配置”

WBOY
WBOYOriginal
2016-06-23 14:08:59989Durchsuche

1,首先检查了php.ini里面的服务 mysql dll 以及mysqli.dll都去除了分号 php安装包里面也逗有相应的dll
2,apache各种配置信息如下 路径也没错
LoadModule php5_module "D:/php/php5.4/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .htm
PHPIniDir "D:/php/php5.4/php.ini"  
LoadFile "D:/php/php5.4/php5ts.dll"
DocumentRoot "G:\php_project"
可是就是会报那个错 求解


回复讨论(解决方案)

phpinfo(); 看看mysqli扩展加载了没有

没有加载  好奇怪 我服务开了的啊

检查 Loaded Configuration File 中的php.ini 是不是你修改的那个文件。

我没有改过
只是在php.ini里面 加了服务和指定ext路径

Loaded Configuration File   (none) 
网上很多做法是把php.ini放到C盘下windows目录下
但是 这不一样 因为在启动apache时我是在apache里面启动php.ini的 这样无需放置php.ini到C盘里 因此我没那么做

PHPIniDir "D:/php/php5.4"  
而不是
PHPIniDir "D:/php/php5.4/php.ini"  

PHPIniDir
php.ini 所在的目录

找到原因了是  是我php.ini文件 不小心多加了“.”  写成了“php..ini”
因此才会出现 Loaded Configuration File   (none) 

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn