Click here to Skip to main content
15,886,857 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have installed the wamp server. I am working on a web application and using the MySQL database. I want to know that where my database file resides in the wamp folder. I mean MS Access has .mdb file, SQL Server has .mdf file, similarly I want to know that Which is mySQL file in which my data is being stored and where I can found it, so that I can keep its backup.
Posted

MySQL has a file format of .frm
 
Share this answer
 
Comments
rashidfarooq 29-Apr-11 7:11am    
does this file store only the information schema or the data as well?
Ryan Zahra 29-Apr-11 7:24am    
http://forge.mysql.com/wiki/MySQL_Internals_File_Formats
rashidfarooq 30-Apr-11 2:26am    
thanks for answering.
The directory where MySQL database files are stored is defined in the MySQL configuration file my.cnf or my.ini. The actual file names and suffixes depend on which storage engines[^] you are using. You should backup the whole MySQL data directory when the database server is stopped, or use the mysqldump program to create a snaphot of the database. See: http://dev.mysql.com/doc/refman/5.5/en/backup-and-recovery.html[^]
 
Share this answer
 
Comments
rashidfarooq 30-Apr-11 2:26am    
thanks for answering.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900