DZ数据库校验无法执行解决办法

作者:我就是个世界 发表于:2007-12-20

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

1, [color=#FF0000]您的服务器环境不允许执行数据库校验,无法进行此操作。[/color][separator]

2,
[code]MySQL Query Error
User: admin
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.[/code]

3,
[code]Discuz! info: MySQL Query Error
User: admin
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.[/code]


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

说明:
1, 有很多人说是1,2条的问题.难道大家这个都不知道吗?笑话!
2, 有很多人说删#sql_5ac_0.MYD' 这个文件就可以了,是啊.没错,当时是可以了.当你操作数据库后又会出现此问题,难道不是吗?所以删除#sql_5ac_0.MYD' 文件后根本没解决真正的问题,但这个文件还是要删除! 不删除无法执行以后的操作!
3.最根本的原因是由于[color=#FF1493]MCAFEE杀毒软件[/color]禁止了TEMP文件可写权限。

分享:

扫一扫在手机阅读、分享本文

请发表您的评论