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.