Solved

Can't create/write to file

Posted on 2006-11-10
1
304 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 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
Foreword This article was written many years ago, in the days when PHP supported the MySQL extension (http://php.net/manual/en/function.mysql-connect.php).  Today (http://php.net/manual/en/migration70.removed-exts-sapis.php) you would not use MySQL…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

856 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