Just to add to this further, if I reduce max_allowed_packet in my.cnf
down to around 16M, then the error changes to "Got a packet bigger than
'max_allowed_packet' bytes".
However, as you can see from the SQL below, the longest SQL statement
I'm executing is around 21 bytes, certainly nowhere near 16MB.
Jasper Bryant-Greene wrote:
> I seem to be getting heaps of aborted connections, and I can't figure
> out why. MySQL's error (from mysqld.err, below) is "Got an error reading
> communication packets", but this is a socket link to localhost so that
> rules out network problems. I simply can't figure it out. Has anyone got
> any ideas?
>
> mysqld Ver 5.0.13-rc-log for pc-linux-gnu on x86_64 (Gentoo Linux)
>
>
> [/tmp/mysqld.sql]
> 051012 21:53:44 27 Connect album_read@localhost on album
> 27 Query SET NAMES utf8
> 28 Connect album_read@localhost on album
> 28 Query SET NAMES utf8
> 28 Query CALL getRandomPhoto()
> 29 Connect album_read@localhost on album
> 29 Query SET NAMES utf8
> 29 Query CALL getHelp('gallery')
> 29 Quit
>
> [/var/log/mysql/mysqld.err]
> 051012 21:53:44 [Warning] Aborted connection 27 to db: 'album' user:
> 'album_read' host: 'localhost' (Got an error reading communication packets)
> 051012 21:53:44 [Warning] Aborted connection 28 to db: 'album' user:
> 'album_read' host: 'localhost' (Got an error reading communication packets)
>
--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/