Mysql Error log

I am getting frequent problem with mysql production DB with below mentioned error

180316 15:31:40 /opt/mysql/bin/mysqld: Incorrect key file for table '/tmp/#sql_5017_10.MYI'; try to repair it
180316 15:31:40 Got an error from unknown thread, /mnt/mysql-5.5.17/storage/myisam/mi_write.c:223
180316 15:31:40 /opt/mysql/bin/mysqld: Incorrect key file for table '/tmp/#sql_5017_16.MYI'; try to repair it
180316 15:31:40 Got an error from unknown thread, /mnt/mysql-5.5.17/storage/myisam/mi_write.c:223
180316 15:31:40 /opt/mysql/bin/mysqld: Incorrect key file for table '/tmp/#sql_5017_12.MYI'; try to repair it

Detail log file is enclosed for reference.  Please let me know whether is it  DB problem or Storage problem

MySQL_error_log_16032018.txt

I just wanted  to know
vensaliAsked:
Who is Participating?
 
Elangovan SundarSenior Software EngineerCommented:
It seems look like your DB temp storage problem. The problem is caused by the lack of disk space in /tmp folder. The /tmp volume is used in queries that require to create temporary tables. These temporary tables are in MyISAM format even if the query is using only tables with InnoDB.
0
 
vensaliAuthor Commented:
Thank you for immediate response.  This means clearly it is not storage problem. because our vendor is arguing that it is nothing to with their application DB and is something else.  please confirm.
0
 
theGhost_k8Database ConsultantCommented:
You need to rebuild the table - go for repair table tablename. Importantly why MyISAM? Look to switch to InnoDB.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.