MySQL client run out of memory