首页 > 代码库 > ERROR 1 (HY000): Can't create/write to file '/tmp/#sql_830_0.MYI' (Errcode: 13)

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)