ERROR 23 (HY000) at line 29963: Out of resources when opening file

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 23 (HY000) at line 29963: Out of resources when opening file相关的知识,希望对你有一定的参考价值。

在还原数据库时报错,报错信息如下:(库中的表比较多)

ERROR 23 (HY000) at line 29963: Out of resources when opening file

解决方法:

在root下修改ulimit值

[[email protected] export]# ulimit -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
scheduling priority             (-e) 0
file size               (blocks, -f) unlimited
pending signals                 (-i) 1032169
max locked memory       (kbytes, -l) 64
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 bytes, -p) 8
POSIX message queues     (bytes, -q) 819200
real-time priority              (-r) 0
stack size              (kbytes, -s) 10240
cpu time               (seconds, -t) unlimited
max user processes              (-u) 1024
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited

修改open files和max user processes 值:
[[email protected] export]# ulimit -n 65535
[[email protected] export]# ulimit -u 65535

修改完open files和max user processes 值后,重启mysql数据库,然后再还原数据库即可

以上是关于ERROR 23 (HY000) at line 29963: Out of resources when opening file的主要内容,如果未能解决你的问题,请参考以下文章

ERROR 1007 (HY000) at line 29: Can‘t create database ‘qz‘; database exists

mysql恢复和数据导入的问题(ERROR 2006 (HY000) at line 1016: MySQL server has gone away)

ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBA

ERROR 1813 (HY000) at line 404: Tablespace for table '`xxx`.`xxxxx`' exists.

ERROR 1840 (HY000) at line 24: @@GLOBAL.GTID_PURGED can only be set when @@GLOBAL.GTID_EXECUTED is e

mysql登陆时出现ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication