Documentation Home
MySQL 8.0 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 44.6Mb
PDF (A4) - 44.7Mb
PDF (RPM) - 40.4Mb
HTML Download (TGZ) - 10.5Mb
HTML Download (Zip) - 10.5Mb
HTML Download (RPM) - 9.1Mb
Man Pages (TGZ) - 205.6Kb
Man Pages (Zip) - 308.8Kb
Info (Gzip) - 3.9Mb
Info (Zip) - 3.9Mb
Excerpts from this Manual

B.6.2.12 Can't create/write to file

If you get an error of the following type for some queries, it means that MySQL cannot create a temporary file for the result set in the temporary directory:

Can't create/write to file '\\sqla3fe_0.ism'.

The preceding error is a typical message for Windows; the Unix message is similar.

One fix is to start mysqld with the --tmpdir option or to add the option to the [mysqld] section of your option file. For example, to specify a directory of C:\temp, use these lines:

[mysqld]
tmpdir=C:/temp

The C:\temp directory must exist and have sufficient space for the MySQL server to write to. See Section 4.2.7, “Using Option Files”.

Another cause of this error can be permissions issues. Make sure that the MySQL server can write to the tmpdir directory.

Check also the error code that you get with perror. One reason the server cannot write to a table is that the file system is full:

shell> perror 28
OS error code  28:  No space left on device

If you get an error of the following type during startup, it indicates that the file system or directory used for storing data files is write protected. Provided that the write error is to a test file, the error is not serious and can be safely ignored.

Can't create test file /usr/local/mysql/data/master.lower-test

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
  Posted by Austin Swinney on January 5, 2011
On linux, Security-Enhanced Linux (SELinux) might be enabled.

`man selinux` or google "disable selinux"

  Posted by Dong Guo on December 8, 2011
If you are using RHEL or CentOS, it may be caused by SELinux firewall settings.
  Posted by curtis pastore on January 11, 2012
Here is a good link that really helped me out with SE linux

http://wiki.centos.org/HowTos/SELinux#head-eb72e09eb6c064aa5124982734323c81f99bc4be
  Posted by don le quy on May 5, 2013
in Mac OS, if you made changes to folder temp (delete, recreate), the owner of folder "temp" should be changed, so mysql can not make changes with it

we have to change owner of folder "temp" to "nobody"

open terminal and enter without ""

"sudo chown nobody /applications/xampp/xamppfiles/temp"
then enter your computer's password

/applications/xampp/xamppfiles/temp is link to your folder "temp"
Sign Up Login You must be logged in to post a comment.