Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi Lost Connection (https://www.delphipraxis.net/82535-lost-connection.html)

kluckweb 15. Dez 2006 08:54

Datenbank: MySQL • Version: 5 • Zugriff über: Intranet

Lost Connection
 
Hallo zusammen,

ich habe seit einigen Tagen erhebliche Probleme mit meiner DB.
Es kommt ständig der Fehler

"[2013] Lost Connection to MySQL Server during Query:

Client: 4.1.10
Server: 5.0.15-nt"

Ich bin mir nicht wirklich bewußt, dass irgendwas wirklich geändert wurde und das Problem tritt auch an den unterschiedlichsten Stellen im Programm auf.

Meine Error-Log notiert hierzu folgendes:

[15.12.2006 00:59:45] Fehler: [2013] Lost connection to MySQL server during query: - Client:4.1.10 - Server:5.0.15-nt ( in TAdvNavBar )
[15.12.2006 01:00:49] Fehler: [2013] Lost connection to MySQL server during query: - Client:4.1.10 - Server:5.0.15-nt ( in TTimer )
[15.12.2006 01:05:49] Fehler: [2013] Lost connection to MySQL server during query: - Client:4.1.10 - Server:5.0.15-nt ( in TTimer )
[15.12.2006 01:06:22] Fehler: [2013] Lost connection to MySQL server during query: - Client:4.1.10 - Server:5.0.15-nt ( in TAdvNavBar )
[15.12.2006 01:06:29] Fehler: [2013] Lost connection to MySQL server during query: - Client:4.1.10 - Server:5.0.15-nt ( in TAdvNavBar )
[15.12.2006 09:16:10] Fehler: [2013] Lost connection to MySQL server during query: - Client:4.1.10 - Server:5.0.15-nt ( in TdataUrkundenrolle )
[15.12.2006 09:32:10] Fehler: [2013] Lost connection to MySQL server during query: - Client:4.1.10 - Server:5.0.15-nt ( in TAdvNavBar )
[2006-12-15 09:50:26] Fehler: [2013] Lost connection to MySQL server during query: - Client:4.1.10 - Server:5.0.15-nt ( in TTreeView )


Ich bin langsam echt am Verzweifeln woran das Liegen könnte und wäre für jeden Tip, der das Problem einkreist sehr sehr dankbar.

Das wirklich merkwürdige ist halt, dass der Fehler an einer Stelle auftaucht, an der nichts geändert wurde und wenn er dort auftaucht, werden alle paar Minuten die Fehlermeldungen "Lost Connection" eingeblendet.

Wäre super, wenn Ihr mir schnell helfen könntet.

DANKE!

[edit=SirThornberry]Titel geändert ("Bitte dringend um Hilfe" entfernt). Hilfe möchte hier jeder zeitnah. Desweiteren sagt dies nichts über das Problem selbst aus worauf es aber im Titel ankommt (und laut Forenregeln gefordert wird) Mfg, SirThornberry :-D [/edit]

hoika 15. Dez 2006 09:58

Re: Lost Connection: Bitte dringend um Hilfe
 
Hallo,

ich würde mal tippen,
dass du Netzprobleme hast.
Lass mal dein Programm auf dem gleichen Rechner wie mysql laufen.

Kommt dann der Fehler auch ?


Heiko

kluckweb 15. Dez 2006 10:05

Re: Lost Connection: Bitte dringend um Hilfe
 
Hallo Heiko,

ja, dann kommt der Fehler leider auch. Von daher hatte ich die Netzwerkprobleme mal ausgeschlossen.

xaromz 15. Dez 2006 10:10

Re: Lost Connection: Bitte dringend um Hilfe
 
Hallo,

interessant wäre das Log des Servers.

Gruß
xaromz

kluckweb 15. Dez 2006 10:13

Re: Lost Connection: Bitte dringend um Hilfe
 
Log des Servers ist kein Problem:

Zitat:

InnoDB: The first specified data file .\ibdata1 did not exist:
InnoDB: a new database to be created!
061214 17:07:28 InnoDB: Setting file .\ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
061214 17:07:28 InnoDB: Log file .\ib_logfile0 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile0 size to 10 MB
InnoDB: Database physically writes the file full: wait...
061214 17:07:28 InnoDB: Log file .\ib_logfile1 did not exist: new to be created
InnoDB: Setting log file .\ib_logfile1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
061214 17:07:29 InnoDB: Started; log sequence number 0 0
061214 17:07:30 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: ready for connections.
Version: '5.0.15-nt' socket: '' port: 3309 Official MySQL binary
061214 18:19:09 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Normal shutdown

061214 18:19:09 InnoDB: Starting shutdown...
061214 18:19:12 InnoDB: Shutdown completed; log sequence number 0 48033
061214 18:19:12 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Shutdown complete

061214 18:19:53 InnoDB: Started; log sequence number 0 48033
061214 18:19:53 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: ready for connections.
Version: '5.0.15-nt' socket: '' port: 3309 Official MySQL binary
061214 18:24:57 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Normal shutdown

061214 18:24:57 InnoDB: Starting shutdown...
061214 18:24:59 InnoDB: Shutdown completed; log sequence number 0 48033
061214 18:24:59 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Shutdown complete

061214 18:25:00 InnoDB: Started; log sequence number 0 48033
061214 18:25:00 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: ready for connections.
Version: '5.0.15-nt' socket: '' port: 3309 Official MySQL binary
061214 18:25:03 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Normal shutdown

061214 18:25:03 InnoDB: Starting shutdown...
061214 18:25:05 InnoDB: Shutdown completed; log sequence number 0 48033
061214 18:25:05 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Shutdown complete

061214 18:25:06 InnoDB: Started; log sequence number 0 48033
061214 18:25:06 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: ready for connections.
Version: '5.0.15-nt' socket: '' port: 3309 Official MySQL binary
061214 18:27:14 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Normal shutdown

061214 18:27:14 InnoDB: Starting shutdown...
061214 18:27:17 InnoDB: Shutdown completed; log sequence number 0 48033
061214 18:27:17 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Shutdown complete

061214 18:27:59 InnoDB: Started; log sequence number 0 48033
061214 18:27:59 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: ready for connections.
Version: '5.0.15-nt' socket: '' port: 3309 Official MySQL binary
061214 19:20:28 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Normal shutdown

061214 19:20:28 InnoDB: Starting shutdown...
061214 19:20:29 InnoDB: Shutdown completed; log sequence number 0 48033
061214 19:20:29 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: Shutdown complete

061214 19:21:15 InnoDB: Started; log sequence number 0 48033
061214 19:21:15 [Note] C:\Programme\MySQL\MySQL Server 5.0\bin\mysqld-nt: ready for connections.
Version: '5.0.15-nt' socket: '' port: 3309 Official MySQL binary

Das wirklich interessante ist, dass der Fehler auch bei älteren Versionen auftaucht, die nie diesen Fehler gemacht haben. Und der Fehler taucht auch nur auf, wenn die Belastung des Netzwerkes relativ hoch ist weil z.B. noch irgendwelche Daten transferiert werden. Sonst kann es auch schon mal gut gehen und das Programm meldet den Fehler nicht.

Kriege hier langsam echt die Krise

xaromz 15. Dez 2006 10:23

Re: Lost Connection: Bitte dringend um Hilfe
 
Hallo,

sieht irgendwie so aus, als ob der Server alle paar Minuten neu gestartet wird. Klar, dass dann die Verbindung geschlossen wird.

Gruß
xaromz

kluckweb 15. Dez 2006 10:30

Re: Lost Connection: Bitte dringend um Hilfe
 
Nein,

die Starts waren manuell. Die Lost Connections sind heute auch schon x-mal aufgetreten aber die werden ja nicht mitgelogged auf dem Server.

kluckweb 15. Dez 2006 11:29

Re: Lost Connection: Bitte dringend um Hilfe
 
Kann man sich irgendwie anzeigen lassen, wie viele Datensätze der rauskriegt?

Ich habe mittlerweile die schwere Vermutung, dass es an der Anzahl der Datensätze liegt, die er bei der Abfrage zurückkriegt und dass er abschmiert, weil es zu viele sind.

dfried 15. Dez 2006 11:43

Re: Lost Connection: Bitte dringend um Hilfe
 
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.

Angel4585 15. Dez 2006 11:43

Re: Lost Connection: Bitte dringend um Hilfe
 
Ich hatte lange Zeit ähnliche Probleme, ich habe das so gelöst das ich die Firewall auf mienem PC deaktiviert habe.
Unsere Antivirensoftware bzw. Firewall (Panda 2007) hat scheinbar jedes Bit was irgendwie durchs Netzwerk lief gescannt, auch wenn auf nem andern PC im Netz das Panda aktiv war kamen diese Probleme.

BTW: ich verwende ZEOS, was für Kompos verwendest du?

Ausserdem hatte ich das problem dann als ich versucht habe aus dem Hauptthread und aus nem zweiten Thread gleichzeitig über eine Connection Abfragen rauszuschicken.


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:01 Uhr.
Seite 1 von 2  1 2      

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz