MySQL failed to create file/write file Error Resolution

Source: Internet
Author: User
Tags file system

If you encounter the following types of errors for some queries, it means that MySQL cannot create temporary files for the result set in the TEMP directory:

Unable to create/write file ' \\sqla3fe_0.ism '.

The aforementioned error is a typical message on the Windows platform, and the message on the UNIX platform is similar.

One way to correct this is to use the--TMPDIR option to start the mysqld, or to add the option in the [Mysqld] section of the option file. For example, to specify a directory C:\temp, you can use:

[mysqld]
tmpdir=C:/temp

The directory C:\temp must exist and there is enough space to allow MySQL to write to it. See section 4.3.2, "Working with options files."

Another reason for this error may be licensing matters. Make sure the MySQL server is able to write to the Tmpdir directory.

In addition, you use perror to check for error codes. One reason the server cannot write to the table is that the file system is full.

shell> perror 28
错误代码28:磁盘上无剩余空间

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.