MySQL is a toy

Really.

mysql> select count(*) from $VERY_LARGE_TABLE
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql> select count(*) from $VERY_LARGE_TABLE
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id:    1
Current databse: $DATABASE


ERROR 2013 (HY000): Lost connection to MySQL server during query

Yes, I edited the output to hide table- and database-names. Other than that, this is exactly what happened.

I'll have PostgreSQL every day.