Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

database - How can I change the temp folder where sqlite creates etilqs files?

(This question is a spin-off of How to avoid httpd.exe from creating etilqs in CWINDOWSTEMP?)

I have Apache 2.4 installed in my computer and I use a localhost web application.

This application uses a sqlite database (through PHP PDO), which was small at the beginning but now it has 66518 rows.

For a while, when I run

SELECT Z.A,B,C,D,(SELECT 1 FROM X WHERE X.A=Z.A AND X.E IS NOT NULL)
FROM Y,Z
Where F=:f AND Y.A=Z.A
ORDER BY D IS NULL DESC, D IS "" ASC, D DESC
LIMIT :startRow,24

the COMODO Firewall's Defense+ Module warns me that http.exe wants to create the new file/folder C:WINDOWSTEMPetilqs_???, where ??? are random numbers and letters.

I think that it happens because the database has became big (at the beginning I didn't have this problem).

COMODO Firewall shows the warning because C:WINDOWS is a protected folder. Then, maybe I could change the folder so that sqlite stores these files in an unprotected one to avoid the warnings.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

To change the temp directory, change the value of the TEMP and TMP environment variables.

Depending on your Windows version, you are likely to find them under Computer ? Properties ? Advanced ? Environment Variables.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...