连接被重置 – 永夜 https://www.shuijingwanwq.com 没有不值得去解决的问题,也没有不值得去学习的技术! Mon, 28 Apr 2014 14:31:53 +0000 zh-Hans hourly 1 https://wordpress.org/?v=7.0 mysql_connect及phpmyadmin登录的时候均会出现连接被重置的提示的解决! https://www.shuijingwanwq.com/2014/04/23/241/ https://www.shuijingwanwq.com/2014/04/23/241/#respond Wed, 23 Apr 2014 02:55:05 +0000 http://www.shuijingwanwq.com/?p=241 浏览量: 101
phpMyAdmin可以正常打开!

phpMyAdmin可以正常打开!

在点击执行按钮后,因为要连接mysql,就便出现连接被重置的情况!

在点击执行按钮后,因为要连接mysql,就便出现连接被重置的情况!

且http://localhost/phpmyadmin有时候会被跳转至http://www.localhost.com/phpmyadmin,最后的解决方案为:

在httpd.conf文件中的PHPIniDir “C:/php”后面插入

LoadFile “C:/php/php5ts.dll”
LoadFile “C:/php/libmysql.dll”

才得以解决!这种问题出现的具体环境为

Apache/2.2.15 (Win32) PHP/5.2.17
数据库客户端版本: libmysql – 5.0.51a
PHP 扩展: mysqli 文档

]]>
https://www.shuijingwanwq.com/2014/04/23/241/feed/ 0