`
wangguorui89
  • 浏览: 318251 次
  • 性别: Icon_minigender_1
  • 来自: 山西
社区版块
存档分类
最新评论

Error: Can't create/write to file 'C:\WINDOWS\TEMP\...MYSQL解决方法

阅读更多

Error: Can't create/write to file 'C:\WINDOWS\TEMP\...(Errcode: 17)MYSQL
网站(MYSQL)出现以下三种情况的真正原因所在:

1, 您的服务器环境不允许执行数据库校验,无法进行此操作。

2, MySQL Query Error
User: 求索
Time: 2007-9-10 8:22am
Script: /redirect.php
SQL: SELECT p.*, m.uid, m.username, m.groupid, m.adminid, m.regdate, m.lastactivity, m.posts, m.digestposts, m.oltime,
m.pageviews, m.credits, m.extcredits1, m.extcredits2, m.extcredits3, m.extcredits4, m.extcredits5, m.extcredits6,
m.extcredits7, m.extcredits8, m.email, m.gender, m.showemail, m.invisible, m.xspacestatus, mf.nickname, mf.site,
mf.icq, mf.qq, mf.yahoo, mf.msn, mf.taobao, mf.alipay, mf.location, mf.medals, mf.avatar, mf.avatarwidth,
mf.avatarheight, mf.sightml AS signature, mf.customstatus, pd.petname, pd.mypetpic, pd.pettype, pd.mypetjob, pd.mypetlevel, pd.mypetexp, pd.mypethp, pd.mypetmaxhp, pd.mypetsp, pd.mypetmp, pd.mypetmaxmp, pd.mypetgood, pd.mypetdead
, mf.spacename
FROM [Table]posts p
LEFT JOIN [Table]members m ON m.uid=p.authorid
LEFT JOIN [Table]memberfields mf ON mf.uid=m.uid
LEFT JOIN [Table]wxpetdata pd ON pd.username=m.username
WHERE p.tid='5642' AND p.invisible='0' ORDER BY dateline LIMIT 40, 40
Error: Can't create/write to file 'C:\WINDOWS\TEMP\#sql_5ac_0.MYD' (Errcode: 17)
Errno.: 1
Similar error report has beed dispatched to administrator before.

3, Discuz! info: MySQL Query Error
User: 求索
Time: 2007-9-10 9:55am
Script: /space.php
SQL: SELECT t.tid, t.subject, t.special, t.price, t.fid, t.views, t.replies, t.author, t.authorid, t.lastpost, t.lastposter, t.attachment, p.pid, p.message FROM [Table]mythreads m INNER JOIN [Table]posts p ON p.tid=m.tid AND p.first='1'
INNER JOIN [Table]threads t ON t.blog='0' AND t.authorid='3' AND t.author!='' AND t.price='0' AND t.fid IN (0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,21,22,23,24,26,27,32,30,31,36,47,46,41,42,43,44) AND t.displayorder>='0' AND t.readperm<='5'
WHERE m.uid='3' AND m.tid=t.tid ORDER BY t.lastpost DESC LIMIT 5
Error: Can't create/write to file 'C:\WINDOWS\TEMP\#sql_5ac_0.MYD' (Errcode: 17)
Errno.: 1
Similar error report has beed dispatched to administrator before.

真正原因如下:
1, C:\WINDOWS\TEMP文件夹权限不够,至少也要给出USERS组的可读可写权限; (给出权限)
2, C:\WINDOWS\TEMP文件夹的磁盘满了,文件写不进去了;(清空TEMP文件夹)
3, 你的服务器装了MCAFEE杀毒软件,它的访问保护禁止了TEMP文件可写;(修改访问保护设置)
4, 还是MCAFEE杀毒软件的问题,解决步骤:按访问扫描属性-所有进程-检测项-扫描文件(在写入磁盘时)勾去掉,OK.

说明:
1, 有很多人说是1,2条的问题.难道大家这个都不知道吗?笑话!
2, 有很多人说删#sql_5ac_0.MYD' 这个文件就可以了,是啊.没错,当时是可以了.当你操作数据库后又会出现此问题,难道不是吗?所以删除#sql_5ac_0.MYD' 文件后根本没解决真正的问题;
3, 最终由本人一个晚上未睡觉,多次测试,找到了最终的原因就是第4条,MCAFEE杀毒软件的问题.

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics