Autor Beitrag
Eisenmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

XP
D4P
BeitragVerfasst: So 19.12.04 15:32 
Hallo,
der Sonntag is weg, und ich komm nicht weiter.

system:D4---MySQL---Zeos;
Problem:Beim speichern von einem Bild größer als 100kb bekomme ich die Fehlermeldung:

ausblenden Quelltext
1:
'SQL Error:Got a packet bigger than 'max_allowed_packet'					



Das Bild bekomme ich in ein DBImage geladen, aber bei post bekomme ich diese Felhlermeldung.


bis dann
der Eisemnamm.
neojones
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1206
Erhaltene Danke: 1



BeitragVerfasst: Mo 20.12.04 10:46 
In /etc/my.cnf bzw. unter Windows my.ini oder mysql.ini bei

set-variable max-allowed-packet den Wert auf 1M setzen. Dann sollte es mit Bildern bis zu ein MB gehen.
Nach der Änderung mySQL neu starten, sonst gehts nicht.

Alternativ auf der mySQL-Konsole mit SET "variablenname"="wert" abändern.

Viele Grüße,

Matthias

_________________
Ha! Es compiliert! Wir können ausliefern!
Eisenmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 26

XP
D4P
BeitragVerfasst: Sa 26.02.05 16:31 
Hallo neojones
hat geklappt,
die Voreinstellung ist wohl 1M, deshalb hab ich durch deinen Tip die Bildgröße auf 1M,
vor dem speichern gestestet
geht, wir können ausliefern :wink:
bis dann, der Eisenmann