PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > strange files in database directory
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
strange files in database directory

Réponse
 
LinkBack Outils de la discussion
Vieux 30/03/2008, 17h57   #1
Marten Lehmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut strange files in database directory

Hello,

I was wondering why the partition is almost full, since the databases
aren't very big. Then I noticed these files in the database directory:

-rw-rw---- 1 mysql mysql 4310560 Dec 24 10:13 #sql_10d4_0.MYD
-rw-rw---- 1 mysql mysql 1024 Dec 24 10:13 #sql_10d4_0.MYI
-rw-rw---- 1 mysql mysql 17182880 Jan 10 01:28 #sql_10e0_0.MYD
-rw-rw---- 1 mysql mysql 1024 Jan 10 01:28 #sql_10e0_0.MYI
-rw-rw---- 1 mysql mysql 20853120 Mar 17 10:55 #sql_10e6_0.MYD
-rw-rw---- 1 mysql mysql 1024 Mar 17 10:55 #sql_10e6_0.MYI
-rw-rw---- 1 mysql mysql 19048320 Feb 20 07:35 #sql_10ef_0.MYD
-rw-rw---- 1 mysql mysql 1024 Feb 20 07:35 #sql_10ef_0.MYI
-rw-rw---- 1 mysql mysql 25702240 Jan 10 03:23 #sql_10fa_0.MYD
-rw-rw---- 1 mysql mysql 1024 Jan 10 03:23 #sql_10fa_0.MYI
-rw-rw---- 1 mysql mysql 8159360 Mar 17 11:17 #sql_1111_0.MYD
-rw-rw---- 1 mysql mysql 1024 Mar 17 11:17 #sql_1111_0.MYI
-rw-rw---- 1 mysql mysql 7724800 Mar 8 18:11 #sql_1119_0.MYD
-rw-rw---- 1 mysql mysql 1024 Mar 8 18:11 #sql_1119_0.MYI
-rw-rw---- 1 mysql mysql 17927360 Feb 6 04:40 #sql_1125_0.MYD
-rw-rw---- 1 mysql mysql 1024 Feb 6 04:40 #sql_1125_0.MYI
-rw-rw---- 1 mysql mysql 11600160 Mar 3 12:59 #sql_1126_0.MYD
-rw-rw---- 1 mysql mysql 1024 Mar 3 12:59 #sql_1126_0.MYI
-rw-rw---- 1 mysql mysql 0 Mar 3 12:59 #sql_1126_1.MYD
-rw-rw---- 1 mysql mysql 1024 Mar 3 12:59 #sql_1126_1.MYI
-rw-rw---- 1 mysql mysql 25076800 Dec 24 10:28 #sql_1129_0.MYD
-rw-rw---- 1 mysql mysql 1024 Dec 24 10:28 #sql_1129_0.MYI
-rw-rw---- 1 mysql mysql 27626080 Mar 8 18:19 #sql_1135_0.MYD
-rw-rw---- 1 mysql mysql 1024 Mar 8 18:19 #sql_1135_0.MYI

There a really dozends of it, currently about 5000 files using 45 GB (!)
of the partition. I thought these might be files from temporary tables,
but then I restartet mysql so it should remove them, but they didn't
disappear.

What are these files from and how can I get rid of it? Can I simply
delete them?

And how can I be sure that they don't appear again?

Regards
Marten
  Réponse avec citation
Vieux 31/03/2008, 15h46   #2
Dan Buettner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: strange files in database directory

Marten, in my experience, these are most often temporary files leftover from
an incomplete operation.

They might be from a long-running query that was canceled, or from a table
repair operation that errored out or was interrupted.

In my experience it is safe to delete them, provided you take care to not
delete one that is in use (i.e. mysql is actively writing to it). The
modification dates should let you watch for that.

Hope this s.

-Dan


On Sun, Mar 30, 2008 at 10:57 AM, Marten Lehmann <lehmann@cnm.de> wrote:

> Hello,
>
> I was wondering why the partition is almost full, since the databases
> aren't very big. Then I noticed these files in the database directory:
>
> -rw-rw---- 1 mysql mysql 4310560 Dec 24 10:13 #sql_10d4_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Dec 24 10:13 #sql_10d4_0.MYI
> -rw-rw---- 1 mysql mysql 17182880 Jan 10 01:28 #sql_10e0_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Jan 10 01:28 #sql_10e0_0.MYI
> -rw-rw---- 1 mysql mysql 20853120 Mar 17 10:55 #sql_10e6_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 17 10:55 #sql_10e6_0.MYI
> -rw-rw---- 1 mysql mysql 19048320 Feb 20 07:35 #sql_10ef_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Feb 20 07:35 #sql_10ef_0.MYI
> -rw-rw---- 1 mysql mysql 25702240 Jan 10 03:23 #sql_10fa_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Jan 10 03:23 #sql_10fa_0.MYI
> -rw-rw---- 1 mysql mysql 8159360 Mar 17 11:17 #sql_1111_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 17 11:17 #sql_1111_0.MYI
> -rw-rw---- 1 mysql mysql 7724800 Mar 8 18:11 #sql_1119_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 8 18:11 #sql_1119_0.MYI
> -rw-rw---- 1 mysql mysql 17927360 Feb 6 04:40 #sql_1125_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Feb 6 04:40 #sql_1125_0.MYI
> -rw-rw---- 1 mysql mysql 11600160 Mar 3 12:59 #sql_1126_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 3 12:59 #sql_1126_0.MYI
> -rw-rw---- 1 mysql mysql 0 Mar 3 12:59 #sql_1126_1.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 3 12:59 #sql_1126_1.MYI
> -rw-rw---- 1 mysql mysql 25076800 Dec 24 10:28 #sql_1129_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Dec 24 10:28 #sql_1129_0.MYI
> -rw-rw---- 1 mysql mysql 27626080 Mar 8 18:19 #sql_1135_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 8 18:19 #sql_1135_0.MYI
>
> There a really dozends of it, currently about 5000 files using 45 GB (!)
> of the partition. I thought these might be files from temporary tables,
> but then I restartet mysql so it should remove them, but they didn't
> disappear.
>
> What are these files from and how can I get rid of it? Can I simply
> delete them?
>
> And how can I be sure that they don't appear again?
>
> Regards
> Marten
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=drbuettner@gmail.com
>
>


  Réponse avec citation
Vieux 31/03/2008, 15h46   #3
Dan Buettner
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: strange files in database directory

Marten, in my experience, these are most often temporary files leftover from
an incomplete operation.

They might be from a long-running query that was canceled, or from a table
repair operation that errored out or was interrupted.

In my experience it is safe to delete them, provided you take care to not
delete one that is in use (i.e. mysql is actively writing to it). The
modification dates should let you watch for that.

Hope this s.

-Dan


On Sun, Mar 30, 2008 at 10:57 AM, Marten Lehmann <lehmann@cnm.de> wrote:

> Hello,
>
> I was wondering why the partition is almost full, since the databases
> aren't very big. Then I noticed these files in the database directory:
>
> -rw-rw---- 1 mysql mysql 4310560 Dec 24 10:13 #sql_10d4_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Dec 24 10:13 #sql_10d4_0.MYI
> -rw-rw---- 1 mysql mysql 17182880 Jan 10 01:28 #sql_10e0_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Jan 10 01:28 #sql_10e0_0.MYI
> -rw-rw---- 1 mysql mysql 20853120 Mar 17 10:55 #sql_10e6_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 17 10:55 #sql_10e6_0.MYI
> -rw-rw---- 1 mysql mysql 19048320 Feb 20 07:35 #sql_10ef_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Feb 20 07:35 #sql_10ef_0.MYI
> -rw-rw---- 1 mysql mysql 25702240 Jan 10 03:23 #sql_10fa_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Jan 10 03:23 #sql_10fa_0.MYI
> -rw-rw---- 1 mysql mysql 8159360 Mar 17 11:17 #sql_1111_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 17 11:17 #sql_1111_0.MYI
> -rw-rw---- 1 mysql mysql 7724800 Mar 8 18:11 #sql_1119_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 8 18:11 #sql_1119_0.MYI
> -rw-rw---- 1 mysql mysql 17927360 Feb 6 04:40 #sql_1125_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Feb 6 04:40 #sql_1125_0.MYI
> -rw-rw---- 1 mysql mysql 11600160 Mar 3 12:59 #sql_1126_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 3 12:59 #sql_1126_0.MYI
> -rw-rw---- 1 mysql mysql 0 Mar 3 12:59 #sql_1126_1.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 3 12:59 #sql_1126_1.MYI
> -rw-rw---- 1 mysql mysql 25076800 Dec 24 10:28 #sql_1129_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Dec 24 10:28 #sql_1129_0.MYI
> -rw-rw---- 1 mysql mysql 27626080 Mar 8 18:19 #sql_1135_0.MYD
> -rw-rw---- 1 mysql mysql 1024 Mar 8 18:19 #sql_1135_0.MYI
>
> There a really dozends of it, currently about 5000 files using 45 GB (!)
> of the partition. I thought these might be files from temporary tables,
> but then I restartet mysql so it should remove them, but they didn't
> disappear.
>
> What are these files from and how can I get rid of it? Can I simply
> delete them?
>
> And how can I be sure that they don't appear again?
>
> Regards
> Marten
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: http://lists.mysql.com/mysql?unsub=drbuettner@gmail.com
>
>


  Réponse avec citation
Vieux 31/03/2008, 15h55   #4
Marten Lehmann
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: strange files in database directory

Hello,

> Marten, in my experience, these are most often temporary files leftover
> from an incomplete operation.
>
> They might be from a long-running query that was canceled, or from a
> table repair operation that errored out or was interrupted.
>
> In my experience it is safe to delete them, provided you take care to
> not delete one that is in use (i.e. mysql is actively writing to it).
> The modification dates should let you watch for that.


thanks. Mysql 5 seems a bit buggy then, because I have never seen this
behavior in mysql 4.1. And from the logs I couldn't see that mysql
crashed or restartet. In fact, our mysql 5 server is mostly idling
around (in contrary to our mysql 4.1 servers).

Kind regards
Marten
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 05h36.


Édité par : vBulletin® version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,12283 seconds with 12 queries