Can "t create/write to file" C: \ WINDOWS \ TEMP \... MYSQL error Solution

Source: Internet
Author: User
Tags mysql tutorial

Error message: Error: "Can t create/write to file" C :\\ WINDOWS \ TEMP \ # SQL _738_0.MYD (Errcode: 17) Errno.: 1

Problem Analysis:

1. C: The WindowsTEMP folder has insufficient permissions. At least the read and write permissions of the USERS group must be given;

2. C: When the disk of the WindowsTEMP folder is full, the file cannot be written, and the TEMP folder is cleared;

3. Third-party restrictions (such as anti-virus software restrictions)


Solution: start with my. cnf configuration.


Add a line in [mysql tutorial d] In my. ini

Tmpdir = "d:/mysql/temp /"

Specifies the directory for creating temporary files, which is used in a large number of queries.
Restart the mysql service to make it take effect.

 


1) your server is installed with MCAFEE Anti-Virus Software. Its access protection prohibits the writing of TEMP files and modifies the access protection settings;

2) The problem is still caused by MCAFEE Anti-Virus Software. Solution: simply remove the scan Attribute-all processes-check items-scan files (when writing data to the disk.

Open the McAfee VirusScan console-> scan by Access Program-> properties-> all processes-> check items-> exclude items-> Add D: mysqltemp
When the exclusion time is read and written.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.