MySQL can't create/write to file '# SQL _5c0_0.myd'

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 the execution of database schools.
You cannot perform this operation.

Solutions and causes:

1. Permission issues
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, and the file cannot be written. In this case, clear the data in the temp folder. or delete the file
# SQL _2250_0.myd (this file must be deleted if you perform the following steps );
 
Note: This is not a fundamental solution. If the server is installed
McAfee must perform the following steps to solve this problem.
 
3. Anti-Virus Software McAfee Problems
3.1 McAfee access protection settings
Modify McAfee's access protection to allow writable temp files;
3.2 McAfee Access Scanning Problems
Open McAfee by access scan properties-all processes-detection items-scan files (when writing data to the disk) to remove;

4,

Solve MySQL Problems
Can't create/write to file 'C:/Windows/temp/# SQL _5c0_0.myd'
In my. ini
Add a row in [mysqld]

Tmpdir = "D:/MySQL/temp /"

Specifies the directory for creating temporary files.
Yes
Restart the MySQL service to make it take effect.

Open 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.
Yes
Modify McAfee
VirusScan console-> scan by Access Program-> properties-> all processes-> detection items-> scan files to remove written files,
My party
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.