I'm trying to list the contents of information_schema
.TABLES
like this:
SELECT * FROM information_schema.`TABLES` LIMIT 10
but it gives me an error:
ERROR 2013 (HY000): Lost connection to MySQL server during query
Then I tought that REPAIR TABLE TABLES
should fix it, but it gave me:
ERROR 2006 (HY000): MySQL server has gone away
No connection. Trying to reconnect...
Connection id: 396
Current database: information_schema
ERROR 1044 (42000): Access denied for user 'root'@'localhost' to database 'information_schema'
Anyone had that problem before or have an idea what could I do to fix this ?
Take a look at your my.conf file and see if raising the following values fixes this issue for you.
interactive_timeout
wait_timeout