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

haoge0205發表於2014-03-26
版本:5.5.14

在還原資料庫時報錯,報錯資訊如下:(庫中的表比較多)

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

解決方法:

在root下修改ulimit值

[root@yoon 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 值:
[root@yoon export]# ulimit -n 65535
[root@yoon export]# ulimit -u 65535

修改完open files和max user processes 值後,重啟mysql資料庫,然後再還原資料庫即可

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28939273/viewspace-1129669/,如需轉載,請註明出處,否則將追究法律責任。

相關文章