Php & #160; solution for resetting the connection to mysql

Source: Internet
Author: User
Tags connection reset

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.