Thema: Delphi Lost Connection

Einzelnen Beitrag anzeigen

dfried

Registriert seit: 16. Aug 2005
486 Beiträge
 
#9

Re: Lost Connection: Bitte dringend um Hilfe

  Alt 15. Dez 2006, 11:43
Es kann auch an der Paketgröße liegen (war bei uns der Fall).
Anbei der entsprechende Ausschnitt aus der MySQL-Doku:

Zitat:
When a MySQL client or the mysqld server receives a packet bigger than max_allowed_packet bytes, it issues a Packet too large error and closes the connection. With some clients, you may also get a Lost connection to MySQL server during query error if the communication packet is too large.

Both the client and the server have their own max_allowed_packet variable, so if you want to handle big packets, you must increase this variable both in the client and in the server.
Zwei weitere Parameter die es bei diesem Fehler auch noch zu beachten gilt sind "interactive_timeout" unt "wait_timeout", wenn diese zu klein sind beendet der Server bei "inaktivität" des Clients einfach die Verbindung.
  Mit Zitat antworten Zitat