mysql Can't create/write to file '/tmp/#sql_584_0.MYI' (Errcode:13)

mysql Can't create/write to file '/tmp/#sql_584_0.MYI' (Errcode:13)

 

 

查看mysql日志:

tail -f /var/log/mysqld.log

关闭mysql命令

service mysqld stop

开启MySQL命令

service mysqld start

--------------------------------

查看日志:

mysql Can't create/write to file '/tmp/#sql_584_0.MYI' (Errcode:13)

原因,可能是,根目录下,的/tmp 的目录权限没有了;

mysql Can't create/write to file '/tmp/#sql_584_0.MYI' (Errcode:13)

,给tmp目录添加权限;

# chown root:root /tmp
# chmod 1777 /tmp
# /etc/init.d/mysqld start

然后,在重启mysql;

service mysqld restart

---------------------------------------

 

 

原文链接

https://blog.****.net/u011247197/article/details/17124003