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

最近的项目中由于临时存储空间太大了。索性把tmp目录删除了。结果访问出现

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

后来网站翻阅了下资料后得到一下解决办法,在Linux命令中执行以下命名,对了。如果是删除了tmp目录,需要先创建tmp目录,仅供参考:

1 # mkdir /tmp
2 # chown root:root /tmp
3 # chmod 1777 /tmp
4 # /etc/init.d/mysqld start
posted @ 2015-07-20 14:42  明济安  阅读(775)  评论(0编辑  收藏  举报