MySQL报错:Error writing file '/tmp/MY4WYVlC' (Errcode: 28 - No space left on device)

MySQL报错:Error writing file '/tmp/MY4WYVlC' (Errcode: 28 - No space left on device)

 

I. Description of the problem

1, MySQL good, suddenly it is not alright, information is as follows:

Internal System Error.

Error message:

org.springframework.jdbc.UncategorizedSQLException:

### Error querying database. Cause: java.sql.SQLException: Error writing file '/tmp/MY4WYVlC' (Errcode: 28 - No space left on device)

### The error may exist in file [/home/webapps/xxxxl/XXXDao.xml]

### The error may involve com.thxxx.getListArea-Inline

### The error occurred while setting parameters

### SQL: SELECT a.id, ROUND(a.wt* 99 / (SELECT max(wt) from xxxx ),2) AS wt, ROUND(a.qt, 2) AS qt, DESC LIMIT ?  .... 

### Cause: java.sql.SQLException: Error writing file '/tmp/MY4WYVlC' (Errcode: 28 - No space left on device)

; uncategorized SQLException for SQL []; SQL state [HY000]; error code [3]; Error writing file '/tmp/MY4WYVlC' (Errcode: 28 - No space left on device); nested exception is java.sql.SQLException: Error writing file '/tmp/MY4WYVlC' (Errcode: 28 - No space left on device)

at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:84)

at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:81)

at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExcepti

...

Caused by: java.sql.SQLException: Error writing file '/tmp/MY4WYVlC' (Errcode: 28 - No space left on device)

...

 

Second, the problem is solved

1, reason: Errcode: 28 - No space left on device: insufficient disk space. MySQL server installation, lack of disk space.

2, to solve: expand disk space; delete junk files and so on.

3, Linux Step Reference:

  • df -lh: Check disk space distribution
  • cd xx: enter the directory filled space
  • du -sh *: Check the file size of each directory
  • Find junk files take up space
  • rm xx: delete junk files. ( Deleted before you repeatedly confirmed, the data can not be recovered !! priceless! )

 

 

Published 156 original articles · won praise 159 · views 490 000 +

Guess you like

Origin blog.csdn.net/HaHa_Sir/article/details/103416731