MySQL出現Errcode 28錯誤提示解決辦法

2021-06-22 06:01:08 字數 1014 閱讀 4021

mysql出現error writing file \'***\'( errcode:28)的原因有很多種,下面我來總結一些常用的關於引起errcode:28錯誤原因與解決方法。

問題一,是log日誌太大也會導致mysql提示error writing file '***'( errcode:28)錯誤了,解決辦法很簡單。

1、清理磁碟,釋放空間;

2、sql語句查詢的原表資料過大,優化sql查詢語句;

3、許可權問題,造成讀寫錯誤,檢視資料夾讀寫許可權;

問題二,

perror 28

error code 28: no space left on device

sql語句執行錯誤:select title,gid from blog_blog where date < 1246200383 and hide = 'n' and type='blog' order by date desc limit 1

error writing file 'c:windowstempmy9b6f.tmp' (errcode: 28)

解決方法:

1.釋放c:windowstemp空間

2.因為原錶太大,所以查詢時生成的臨時表過大,因此出錯。

解決辦法。重啟了mysql,然後加上where分三段查詢,避免全表掃瞄。

問題三,

error writing file '/tmp/myis0upv' (errcode: 28) ,可能是在mysql的臨時目錄中沒有更多的空間。

可以用df -lh來檢視磁碟的使用情況。

試著改一下my.ini的tmp_dir的路徑,重啟mysql,問題應該可以解決

mysql2oracle出現的各種坑

先是要從mysql轉換到oracle11g for windows x64 用了oracle的sql developer,死活轉不了,無奈之下用了mysql2oracle,也是各種問題。一會提示oci.dll找不到,於是複製了乙個過來,提示 1錯誤,於是再把其他一些dll也複製過來,也不行,還是 1...

mysql出現幫助 mysql獲取幫助

檢視配置引數 show variables like timeout 2 mysql客戶端工具自帶的幫助 synonym for help clear c clear the current input statement.清除當前輸入的語句 connect r reconnect to the s...

連線mysql出現2002錯誤

在執行mysql命令的過程中,有時候會碰到如下的錯誤 stat tencent mysqldump uroot d mp yx stat mp yx stat.sql mysqldump got error 2002 can t connect to local mysql server throu...