ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_830_0.MYI' (Errcode: 13)

Posted 遗忘角落

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_830_0.MYI' (Errcode: 13)相关的知识,希望对你有一定的参考价值。

mysql操作时,出现报错。

执行describe 命令时,

 

临时文件目录没有创建或者无写入权限:于是:

cd /var/lib/mysql/   #进入mysql数据目录
mkdir  tmp           #创建需要的临时目录
chown mysql.mysql /var/lib/mysql/tmp   #给临时目录分配mysql权限用户及群组

 

以上是关于ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_830_0.MYI' (Errcode: 13)的主要内容,如果未能解决你的问题,请参考以下文章

ERROR 1010 (HY000): Error dropping database (can't rmdir './test/', errno: 17)

ERROR 1010 (HY000): Error dropping database (can't rmdir '.qpweb', errno: 41) 删库失败问题的解决

ERROR 1010 (HY000): Error dropping database (can't rmdir './zabbix/', errno: 17)

MySQL: ERROR13(HY000):Can't get stat of

ERROR 2003 (HY000): Can't connect to MySQL server on 'ip'(111)

ERROR 2003 (HY000): Can't connect to MySQL server