Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Can't create/write to file

Posted on 2006-11-10
1
Medium Priority
?
311 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 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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

In this blog post, we’ll look at how ClickHouse performs in a general analytical workload using the star schema benchmark test.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
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…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

670 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