When logging in mysql_connect and phpmyadmin, there will be a solution to the prompt that the connection is reset!
Furtherhttp://localhost/phpmyadmin有时候会被跳转至http://www.localhost.com/phpmyadmin,最后的解决方案为:
Insert after phpinidir “c:/php” in the httpd.conf file
loadfile “c:/php/php5ts.dll”
loadfile “c:/php/libmysql.dll”
Just solved! The specific environment of this problem is
Apache/2.2.15 (Win32) PHP/5.2.17
Database client version: libmysql – 5.0.51a
php extension: mysqli documentation

