Can t connect to MySQL tutorial server on workaround
Error Number: 2003
Problem Analysis:
Unable to connect to the MySQL server, as possible:
1, the MySQL service does not start, generally in the case of the exception of MySQL can not start, such as no available disk space, My.ini mysql basedir path set error, etc.
2, the MySQL server resource is tight, causes cannot connect.
Workaround:
1, if you are a virtual host user (buy the space), then contact space to check whether MySQL normal restart
Move, and confirm MySQL configuration information (whether localhost);
2, if you are a stand-alone host user (with administrative host permissions), then follow the steps below to check:
1 Check whether the MySQL service is started.
Windows host, right click on My Computer, click Manage, find in services and applications
MySQL service to see if the state is started.
MySQL 10061 Error resolution
If the "Error 2003:can ' t connect to the MySQL server on ' localhost ' appears
(10061) ", stating that your MySQL has not yet started."
Solution: In the service, start the MySQL service
Can ' t connect to MySQL server on ' localhost ' (10055)
Solution, 1. It is recommended to modify the maximum number of connections, or to change the mysql_connect () method to
Mysql_pconnect () method,
2. The symptom, blockade these IP, an IP connection is more than 3 is a bit abnormal,
Seal
3, radical, modify the site program, is strictly prohibited to refresh too fast!
Changes to the number of links:
This error is associated with a registry key value TcpTimedWaitDelay. Reduce windows in
TcpTimedWaitDelay time resolves this type of problem by default of 240 (also if not set
This value). This setting needs to be set up in the following registry location: [HKEY_LOCAL_MACHINE]
[System] [CurrentControlSet] [Services] [TCPIP] [Parameters]
[TcpTimedWaitDelay] If this item is not tcptimedwaitdelay in the registry, please add this
Project and set it to a Double-byte (DWORD) type. The value is set to between 30 and 60.
Database Tutorial Link Error: Can ' t connect to MySQL server on ' localhost ' (10060)
The server-side operating system is Windows XP SP2, with a firewall open 3306 (mysql default side
mouth) port
Firewall prohibits port 3306, take iptable as an example
Vi/etc/sysconfig/iptables
-A rh-firewall-1-input-m state--state new-m tcp-p TCP--dport 3306-j
Accept
Service Iptables Restart
PS Tutorial: iptables settings
1) effective after reboot
Open: Chkconfig iptables on
Close: Chkconfig iptables off
2) immediate effect, restart after failure
Open: Service iptables start
OFF: Service iptables stop