In Windows 7, the php connection to mysql is solved. For more information about how to reset the connection to mysql, see. After the 64-bit Windows 7 system is installed, many things are arranged, which is always the same. Yesterday, when we started to configure php + apache, echo phpinfo () was no problem, however, when you connect to mysql, the page is reset. The problem was not serious, but I had a misunderstanding: 1. I suspected the problem of a 64-bit system; 2. I felt that the code was unreliable, because it could be executed in other ways, and I wrote a substr () rashly () it can also be displayed ...... this problem has been entangled for more than a day, but it still cannot be solved. In desperation, I used the keyword "php connection mysql Connection Reset" to hold a search, showing a lot of sporadic information, one query was finally mentioned because of libmysql. dll references. I was so excited that I had to watch it and follow the instructions. Or even I was willing to restart my computer. I was afraid that the cache would be enough. It is finally solved later. ----------- I am aware of the importance of misunderstanding. I will post the solution here, hoping that some people will be able to use it. Test libmysql plugin is written to windows/system32 and libmysql. dll is copied to apache/bin. Of course, the most convenient method is: in apache: LoadFile D:/PHP/php5.2.13/libmysql. dll, only the above line can be used, and mysql can be used successfully. My server version: win7 apache 2.2.13 php 5.2.13 mysql5.1.37 phpmyadmin3.3.2 below is my apache Department configuration. PHPIniDir D:/PHP/php5.2.13 # Not required LoadFile D:/PHP/php5.2.13/php5ts. dll LoadFile D:/PHP/php5.2.13/libmysql. dll LoadModule php5_module D:/PHP/php5.2.13/php5apache2_2.dll AddType application/x-httpd-php. php