2006 - MySQL server has gone away

SELECT db, COUNT(*) AS NumConnections FROM information_schema.processlist WHERE db IS NOT NULL GROUP BY db;

[TEP STOP]

2006 - MySQL server has gone away

select count(*) as total from sessions where sesskey = '7u5ar59eg8jbvs8hn3vu2854d7'

[TEP STOP]