MySQL Forums
Forum List  »  Newbie

Re: mysql table physical storage
Posted by: Umesh Shastry
Date: June 11, 2005 07:42AM

Hi!!


Each MyISAM table is stored on disk in three files. The files have names that begin with the table name and have an extension to indicate the file type. An `.frm' file stores the table definition. The data file has an `.MYD' (MYData) extension. The index file has an `.MYI' (MYIndex) extension.

You can check there locations(commands will be same on any OS)..

C:\mysql\bin>mysql -uroot -p
Enter password: *******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 238 to server version: 4.0.18-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

(root@localhost) [(none)]> SHOW VARIABLES LIKE '%DATADIR%';
+---------------+----------------+
| Variable_name | Value |
+---------------+----------------+
| datadir | C:\mysql\data\ |
+---------------+----------------+
1 row in set (0.00 sec)

(root@localhost) [(none)]>

All files will be stored in C:\mysql\data\DATABASENAME

You should not edit these(any) files directly..this may cause severe problems..you can connect the server & make use of SQL commands to get required info..

Regards,
Umesh Shastry
http://www.blogger.com/profile/02551756983528645221

Options: ReplyQuote


Subject
Written By
Posted
Re: mysql table physical storage
June 11, 2005 07:42AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.