MySQL Timeout problem handling

Source: Internet
Author: User

When the database appears with 10055 and 10048 errors, the workaround:

First link Timeout setting
(1) Open registry: regedit
Find Hkey_local_machine\system\currentcontrolset\services\tcpip\parameters\tcptimedwaitdelay

If this item is not tcptimedwaitdelay in the registry, increase the project and set the double-byte (DWORD) type value to 30

(2) Kill Administrator Explorer

(3) Restart your computer

Second dynamic port default range 49152-65535
MySQL Dynamic port
netsh int ipv4 set dynamicport tcp start=10000 num=50000
netsh int ipv4 set dynamicport UDP start=10000 num=50000
netsh int ipv6 set dynamicport tcp start=10000 num=50000
netsh int ipv6 set dynamicport UDP start=10000 num=50000

Can be written as a bat script, unified execution:

@echo off&setlocal enabledelayedexpansion
Echo TcpTimedWaitDelay 30
REG ADD "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters"/V "tcptimedwaitdelay"/t REG_DWORD/ D 30/f
echo IPv4 TCP
netsh int ipv4 set dynamicport tcp start=10000 num=50000
echo IPv4 UDP
netsh int ipv4 set dynamicport UDP start=10000 num=50000
echo IPv6 tcp
netsh int ipv6 set dynamicport tcp start=10000 num=50000
echo IPv6 udp
netsh int ipv6 set dynamicport UDP start=10000 num=50000
Pause

MySQL Timeout problem handling

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.