器量大者,福泽必厚
全部博文(587)
分类: LINUX
2011-11-05 22:28:15
客户投诉说自己的网站链接不上db,提示见附件
This error can happen when the client is attempting an initial connection to the server. If your connect_timeout value is set to only a few seconds, you may be able to resolve the problem by increasing it.
Before increasing the value of connect_timeout, first determine its current value. This can be done by executing the following SQL statement:
Normally, setting this variable to ten seconds would be sufficient. You might want to set it to more than ten seconds if you have a very long distance or slow connection. You can determine whether you are experiencing this more uncommon cause by using the following SQL statement:
This statement usually will return an empty set. However, if you have been experiencing aborted connections, the value will increase by one for each initial connection attempt that the server aborts.
To change this value of connect_timeout, you can use the SET statement. You will need SUPER privileges.