2

yesterday i got bad getway error while browsing my vb forum

and today my forum back to work ... but most of links give this error

MySQL Error   : Can't create/write to file '/var/mysqltmp/#sql_1fbd_0.MYI' (Errcode: 13)

i search for simillar problem and got that this is premission problem

using FTP account i didnt found this directory "var/mysqltmp" so i made it and set premission to 777

but problem not solved

i read that this must fixed using Shell SSH ... but i didnt found a good explain about hoe to use shell SSH , because im Win Xp user :(

does this problem can be solved from FTP or Cpanel ? or its a server problem ?

thanks for help in advance

4

3 回答 3

2

看起来您对 /tmp 的权限是错误的。对于设置了粘性位的每个人,它们确实应该被读/写/执行。

chmod 1777 /tmp

粘性位对其他用户如何与不是他们创建或拥有的文件进行交互添加了一些限制,因此没有理由担心。

如果您愿意,您还可以创建一个由 mysql 用户拥有和可写的单独目录,并在 my.cnf 中指定要使用的目录而不是系统范围的 /tmp。

于 2015-03-09T09:29:08.330 回答
0

尝试运行查找损坏表的 mysql 工具: mysqlcheck dbname -uusernamae -p

就我而言,我没有收到任何错误,但之后 tmpdir 的问题得到了解决。

于 2015-04-07T12:22:59.653 回答
0

只需使用

REPAIR TABLE tablename

文档http://dev.mysql.com/doc/refman/5.1/en/repair-table.html

当然,您必须找到损坏的表。

在大多数情况下,它的服务器问题(磁盘错误)

于 2011-11-13T19:26:48.650 回答