Could not connect : Lost connection to MySQL server during query