Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Can't create/write to file

Posted on 2006-11-10
1
Medium Priority
?
314 Views
Last Modified: 2008-03-06
I have a web-server running windows server 2003 web-edition, with a mysql database. The server runs without problems since more than 1 year. Recently however I sometimes get the error: Can't create/write to file 'c:\winnt\temp\#sql_3bc_0.MYI' (Errcode: 13).
Yes, the directory exists and the right security settings are applied. The error occurs not every query, but only now and then. Has it something to do with the growing size of the database? Use of memory? When a result of a table gets too large it's written to disk?
Hope someone can help!
0
Comment
Question by:reinoutkool
1 Comment
 
LVL 12

Accepted Solution

by:
AdrianSRU earned 375 total points
ID: 17921746
The file that it is trying to create is a temporary file that MySQL uses when a query has to process too much information for it to do it all in memory and a file must be created on the disk.  I have run into that error before and I was able to fix it by creating a temp directory in the mysql directory (C:\mysql\temp) and then starting the server with the option:

--tmpdir=C:\mysql\temp\


Hope this helps.


--Adrian
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating and Managing Databases with phpMyAdmin in cPanel.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question