我正在尝试列出 information_schema
的内容。TABLES
如下所示:
SELECT * FROM information_schema.`TABLES` LIMIT 10
但它给了我一个错误:
ERROR 2013 (HY000): Lost connection to MySQL server during query
然后我认为 REPAIR TABLE TABLES
应该修复它,但它给了我:
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'
以前有人遇到过这个问题,或者知道我可以做些什么来解决这个问题吗?
最佳答案
查看您的 my.conf 文件,看看提高以下值是否可以为您解决此问题。
interactive_timeout
wait_timeout
关于mysql - 如何修复 `information_schema` .`TABLES` ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11258561/