Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL++ - Programming with the C++ API to MySQL
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
what are those MySQL files for?

what are those MySQL files for?

2006-07-01       - By Dan Nelson

 Back
Reply:     1     2     3  

In the last episode (Jul 01), Douglas Sims said:
> On Jun 30, 2006, at 11:47 PM, Octavian Rasnita wrote:
> >In the /data/database_name directory I have found a few files I
> >don't know what they are used for. I have seen that some of them are
> >pretty big. I don't think it is safe to delete them, but can I do
> >something to decrease their size at least?
> >
> >Here are those files and their sizes in MB:
> >
> >1 #sql-2 (See http://sql-2.ora-code.com)a91_cdf.frm
> >397 #sql-2 (See http://sql-2.ora-code.com)a91_cdf.MYD
> >253 #sql-2 (See http://sql-2.ora-code.com)a91_cdf.MYI
> >1 #sql-6094 (See http://sql-6094.ora-code.com)_2.frm
> >397 #sql-6094 (See http://sql-6094.ora-code.com)_2.MYD
> >1 #sql-6094 (See http://sql-6094.ora-code.com)_2.MYI
> >2 #sql-6094 (See http://sql-6094.ora-code.com)_2.TMD
>
> Those are the files which contain the data in each table in your
> MySQL databases.  I think the .myd files contain the data, the .myi
> files contain indexes, and the .frm files contain schema information.

In general, yes, files ending in .MY? are database files.  These
particular files are actually temporary database files (because they
start with "#sql-").  They're created when you run an ALTER TABLE
command and are deleted when the procedure finishes.  If you run SHOW
PROCESSLIST and don't see any active queries, then those files were
probably left over from a system crash and can be deleted.

--
  Dan Nelson
  dnelson@(protected)

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/mysql?unsub=mysql@(protected)