"无法加载 mysql (外链,英语) 扩展,请检查您的 PHP 配置"
1.20Ireceivetheerror"cannotloadMySQLextension,pleasecheckPHPConfiguration".Toconnectt...
1.20 I receive the error "cannot load MySQL extension, please check PHP Configuration".To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed.
Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar.
我也在百度上面搜索了许久
pgp.ini文件也改了
还是未解决 大家知道这是为何? 展开
Usually, the problem is solved by installing a software package called "PHP-MySQL" or something similar.
我也在百度上面搜索了许久
pgp.ini文件也改了
还是未解决 大家知道这是为何? 展开
2个回答
展开全部
你安装步骤应该有问题,可能配置php和mysql的有问题
如果是windows安装,你看下dll扩展是否放好了:
c盘
windows下(xp系统)放入php_msql.dll,php_mysqli.dll增加msql mysqli的扩展
system32下放入libmysql.dll,php5ts.dll
还有你的ini里边
;extension=mysql.so改为:extension=mysql.so
你确定你的php程序可以访问mysql?
不要用phpmyadmin来测试
自己写段php链接数据的程序
<?php
$link = mysql_connect("localhost", "mysql_user", "mysql_password")
or die("Could not connect: " . mysql_error());
print ("Connected successfully");
mysql_close($link);
?>
如果测试通过就应该没啥大问题
如果是linux安装,我无法解决你的问题,给你个地址你可以看看
如果是windows安装,你看下dll扩展是否放好了:
c盘
windows下(xp系统)放入php_msql.dll,php_mysqli.dll增加msql mysqli的扩展
system32下放入libmysql.dll,php5ts.dll
还有你的ini里边
;extension=mysql.so改为:extension=mysql.so
你确定你的php程序可以访问mysql?
不要用phpmyadmin来测试
自己写段php链接数据的程序
<?php
$link = mysql_connect("localhost", "mysql_user", "mysql_password")
or die("Could not connect: " . mysql_error());
print ("Connected successfully");
mysql_close($link);
?>
如果测试通过就应该没啥大问题
如果是linux安装,我无法解决你的问题,给你个地址你可以看看
参考资料: http://ocaoimh.ie/cannot-load-mysql-extension-please-check-your-php-configuration/
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询