Solve the problem of "Can" t create/write to file "# SQL _5c0_0.MYD" in MYSQL.

Source: Internet
Author: User

Today, when I log on to the management backend of the Internet site, a prompt is displayed.
MySQL error: Can't create/write to file' # SQL _5c0_0.myd'
MySQL server error:
Can't create/write to file 'C:/WINDOWS/TEMP/# SQL _a80_0.myd' (Errcode: 17) (1)
Analyze and solve the problem based on the online search prompt and your situation as follows:

Note:
This problem occurs because the server environment does not allow database verification.
Solutions and causes:
1. Permission Problem C: The/WINDOWS/TEMP folder has insufficient permissions. At least the read and write permissions of the USERS group should be given, or the everyone permission should be granted;
2. The file is too large. C: the disk of the/WINDOWS/TEMP folder is full. If the file cannot be written, clear the data in the temp folder; or delete this file # SQL _2250_0.MYD (this file must be deleted if you perform the following steps );

Note: This is not a fundamental solution. If McAfee is installed on the server, the following steps must be performed to solve the problem.

3. Anti-Virus Software McAfee Problems
3.1 modify the McAfee access protection settings to allow writable TEMP files;
3.2. For McAfee Access Scanning problems, open McAfee by access scan properties-all processes-detection items-scan files (when writing data to a disk) and deselect;

4. Solve the Problem of "Can't create/write to file" C:/WINDOWS/TEMP/# SQL _5c0_0.MYD "in MYSQL'
Add a line in [mysqld] 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.

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

Note:The default temporary directory for mysql is c:/windows/temp.
Modify the McAfee VirusScan console-> scan by Access Program-> properties-> all processes-> check items-> scan files to remove files written,
My method is relatively safer.

As for permissions, the mysql service uses system permissions by default and is generally fully controlled by the system. If necessary, you can also give the user a startup user.

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.