Computing.Net > Forums > Database > Selecting file system for mysql

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Selecting file system for mysql

Reply to Message Icon

Name: pnbalaji
Date: October 15, 2008 at 08:04:41 Pacific
OS: AIX 5.3
CPU/Ram: 16GB
Product: IBM
Comment:

Hi,

I would like to know the following. Can some one tell me?

1. Where are the actual files for the mysql databases/tables are stored? I assume this is the /data directory under the mysql installation directory, but not sure.
2. how to create a mysql database in a specific file system.

Thanks in advance,
Balaji.



Sponsored Link
Ads by Google

Response Number 1
Name: jon_k
Date: October 17, 2008 at 08:41:37 Pacific
Reply:

1. mysql stores the data in a location you specify on install - by default, it goes in \data within the mysql folder. Each folder relates to a database, but the "raw data" is stored in different locations depending on the ENGINE you use for your tables.

For innoDB tables, data sits in the ibdata file in the root data directory.

For MyISAM, tables, data sits in the database folder. *.MYD is data, *.MYI are indexes, *.frm are table definitions (I think)

2. Not 100% sure what you mean by this but it happens when you issue the CREATE TABLE statement.

CREATE TABLE t1 (field INT NOT NULL PRIMARY KEY) ENGINE=MYISAM;

HTH


0
Reply to Message Icon

Related Posts

See More


Access 2003 Double Bookin... MS Access Treeview Drag p...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Database Forum Home


Sponsored links

Ads by Google


Results for: Selecting file system for mysql

MySQL Select multiple tables www.computing.net/answers/dbase/mysql-select-multiple-tables/158.html

create a table from a file www.computing.net/answers/dbase/create-a-table-from-a-file/249.html

web based file management www.computing.net/answers/dbase/web-based-file-management-/408.html