Home  >  Article  >  Database  >  Can”t create/write to file “C:WINDOWSTEMP...MYSQL报

Can”t create/write to file “C:WINDOWSTEMP...MYSQL报

WBOY
WBOYOriginal
2016-06-07 17:50:521000browse

错误提示:Error: ”Can t create/write to file “C:\\WINDOWS\\TEMP\\#sql_738_0.MYD (Errcode: 17)Errno.: 1

问题分析:

1、C:WindowsTEMP 文件夹权限不够,至少也要给出 USERS 组的可读可写权限;

2、C:WindowsTEMP 文件夹的磁盘满了,文件写不进去了,清空 TEMP 文件夹;

3、第三方限制(如杀毒软件的限制)


解决方法,先从my.cnf配置开始


在my.ini中[d]里面添加一行

tmpdir="d:/mysql/temp/"

指定创建创建临时文件的目录,大量查询时会用到
重新启动mysql服务使之生效.

 


1)你的服务器装了 MCAFEE 杀毒软件,它的访问保护禁止了 TEMP 文件可写,修改访问保护设置;

2)还是MCAFEE杀毒软件的问题,解决步骤:按访问扫描属性 - 所有进程 - 检测项 - 扫描文件(在写入磁盘时 )勾去掉就好了。

打开McAfee VirusScan控制台->按访问扫描程序->属性->所有进程->检测项->排除项->添加D:mysqltemp
排除时间选择读取时写入时.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn