Linux:无法执行" SHOW TRIGGERS"(如" table_name"):来自存储引擎的错误28
时间:2020-02-23 14:39:28 来源:igfitidea点击:
在您的MySQL数据库上执行此错误时执行任务?
Couldn't execute 'SHOW TRIGGERS LIKE 'table_name";: Got error 28 from storage engine (1030)
在以下两种情况下可能会发生这种情况:
Your filesystem is full > [ make some room or add more storage! ] You've reached the maximum open file > [ increase the maximum file descriptor ]
您可以直接在MySQL中显示最大打开文件限制,如下所示:
mysql> SHOW VARIABLES LIKE 'Open_files_limit'; +------------------+-------+ | Variable_name | Value | +------------------+-------+ | open_files_limit | 1024 | +------------------+-------+ 1 row in set (0.00 sec)
另外,您也可以在操作系统级别对其进行检查:
ulimit -a
要增加最大打开文件描述符,只需执行以下操作:
ulimit -n <value>
(用允许的打开文件数替换<值>)
*先前的命令无法重新启动,值将恢复为默认值(1024)。
要使其永久,请编辑以下内容:
/etc/security/limits.conf
并添加(或者修改):
* hard nofile <value>