Solved

Can't create/write to file

Posted on 2006-11-10
1
308 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
AdrianSRU earned 125 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

Webinar: Security & Encryption in the MySQL world

Join Percona’s Solutions Engineer, Dimitri Vanoverbeke as he presents “Security and Encryption in the MySQL world” on Thursday, July 6, 2017 at 7:00 am PDT / 10:00 am EDT (UTC-7).

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

728 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