自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

MySQL數(shù)據(jù)庫打開文件太多導(dǎo)致mysqldump出錯的解決

數(shù)據(jù)庫 MySQL
本文簡單介紹了由于MySQL數(shù)據(jù)庫打開的文件太多而造成的mysqldump出錯的原因排查及解決方案,希望能夠?qū)δ兴鶐椭?/div>

MySQL數(shù)據(jù)庫使用過程中出現(xiàn)故障,導(dǎo)致mysqldump出錯,故障現(xiàn)象如下:

1:使用mysqldump命令dump出整個數(shù)據(jù)庫:

 

  1. mysqldump: Got error: 1105: File './db/data_20070901.MYD' not found (Errcode: 24) when using LOCK TABLES 

 

2:查看/data/db下面文件沒有缺少,使用mysql客戶端連接desc以及select * from這個表都沒有問題。而且如果使用dump命令直接dump這個表也不會出錯

通過perror 24 得知,錯誤信息為:

 

  1. [root@localhost ~]#perror 24  
  2.  
  3. OS error code 24: Too many open files 

 

 

因此,修改一下 /etc/my.cnf ,設(shè)定open_files_limit為較大值,如 4096,重啟mysqld,問題就解決了。

關(guān)于MySQL數(shù)據(jù)庫的mysqldump故障的解決方案就介紹到這里了,如果您想了解更多關(guān)于MySQL數(shù)據(jù)庫的知識,可以看一下這里的文章:http://database.51cto.com/mysql/,相信一定可以給您帶來收獲的!

【編輯推薦】

  1. 關(guān)于MySQL數(shù)據(jù)庫設(shè)計的幾點(diǎn)優(yōu)化措施
  2. 簡單介紹一下Oracle數(shù)據(jù)庫的三個進(jìn)程
  3. MySQL數(shù)據(jù)庫如何恰到好處地使用索引?
  4. 利用三個SQL視圖查出所有SQL Server數(shù)據(jù)庫字典
  5. MySQL數(shù)據(jù)庫.frm文件、.MYD文件和.MYI文件的修復(fù)方法
責(zé)任編輯:趙鵬 來源: 火魔網(wǎng)
相關(guān)推薦

2011-03-04 14:39:03

MySQL數(shù)據(jù)庫mysqldump

2010-06-02 17:06:54

MySQL數(shù)據(jù)庫文件

2010-07-06 14:40:15

解決SQL Serve

2011-08-03 14:02:02

數(shù)據(jù)庫連接ACCESS

2010-05-31 09:50:13

MySQL數(shù)據(jù)庫

2010-05-24 14:02:06

MySQL數(shù)據(jù)庫

2023-12-07 15:09:23

2011-08-01 14:26:01

數(shù)據(jù)庫SUSPECT

2010-10-29 11:06:12

Oracle scot

2011-08-05 13:41:18

mysql數(shù)據(jù)庫數(shù)據(jù)庫配置

2021-05-08 08:19:20

電腦C盤系統(tǒng)垃圾軟件

2010-06-07 14:09:12

mysqldump備份

2011-04-06 16:39:01

默認(rèn)數(shù)據(jù)庫

2017-05-26 09:23:47

MySQL數(shù)據(jù)庫中文

2011-03-07 16:42:05

MySQL數(shù)據(jù)庫安全

2010-05-27 18:24:09

MySQL數(shù)據(jù)庫密碼

2018-08-01 14:00:49

MySQL數(shù)據(jù)庫PHP

2010-05-11 12:57:45

MySQL數(shù)據(jù)庫編碼

2010-05-28 19:06:40

MySQL

2011-03-28 13:11:18

MySQL數(shù)據(jù)庫安全
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號