The php background often prompts that the connection to mysql cannot be refreshed and then accessible _ MySQL

Source: Internet
Author: User
The php backend often prompts that the connection to mysql cannot be refreshed and then accessible. bitsCN.com provides two methods on the Internet:

First:Uninstall the KB967723 patch.
Log on to the server and go to Control Panel-add and delete programs-(check "show updates" on the top). you can see the updated KB967723 patch in it, and then uninstall it just like uninstall common software, you will be prompted during uninstallation. if uninstallation may cause program running errors, it doesn't matter. select "yes" to continue uninstallation. Restart the database server after uninstalling the instance.

Type 2: modify the registry
This method is provided by Microsoft to modify the registry to fix this Bug, because the default maximum number of temporary TCP ports is 5000, which is applicable to the products included in this section. Add a new parameter to these products. To increase the upper limit of the temporary port, follow these steps:

  1. Start Registry Editor.
  2. Find the following subitem in the registry, and then clickParameters: HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/Tcpip/Parameters
  3. InEditClickNew, And then add the following Registry key: Value name:MaxUserPort
    Value type: DWORD
    Value data: 65534
    Valid range: 5000-65534 (decimal)
    Default value: 0x1388 (5000 decimal)
    Note: this parameter controls the maximum number of ports used by the program to request any available user ports from the system. Generally, a temporary (short) port is allocated between the value of 1024 and the value of 5000.
  4. Exit Registry Editor and restart your computer.


The first method has been verified to solve the problem correctly, and the second method is being verified.
Address: http://support.microsoft.com/kb/q196271
Because an error occurs when you modify the registry file, we have prepared a registry file for you. you can double-click the file to run the import operation. the server has the anti-virus feature to prevent temporary cancellation of registration modification, otherwise, the data cannot be imported.

BitsCN.com

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.