[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


MySQL files location in RH9 Linux

Posted on 2004-10-21
Medium Priority
Last Modified: 2013-12-06
I have MySQL running on my windows XP system - installed by a package called Foxserv. In windows for every mysql db there is a folder, named the same as the database name, that contains 3 files for every table - tblname.frm; tblname.MYD; tblname.MYI. To back up my database all I have to do is to save this files -> this is my testing environment.
My Live environment is a Linux Box - Red Hat 9 - running apache server with plesk. The question that I have is - do the same files exist on the Linux server and if they do:
1) where are the located
2) is it possible to download them and use them on a windows XP system.

Please bear in mind that I am a complete novice with Linux - I have just about managed to access my server with SSH and navigated around a little. Please don't start spouting off reams of linux commands as it will go completely over my head. I am willing to learn if there is some good resource to help me I would appreciate that.
Question by:ismfa
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 40

Accepted Solution

jlevie earned 252 total points
ID: 12377315
You really don't want to be backing up the DB files unless you are willing to shutdown MySQL before the backup. There's no assurance that the DB files will reflect the current state of the DB if MySQL is running at the time of the backup. For a web server shutting down MySQL is, at the least inconvient, and will stop the site from working during the backup.

However, there are alternatives that will produce a static image of the DB contents. This subject is covered quite well at http://jeremy.zawodny.com/mysql/mysql-backup-and-recovery.html

The DB file content for a standard RH 9 MySQL will in in /var/lib/mysql.

Assisted Solution

clau earned 248 total points
ID: 12380190
Here is a very simple way to backup mysql data:


It uses mysqldump to create sql statements that can be used to restore a database, in any mysql server (even on windows)

Expert Comment

ID: 12383378
There's a much more simple and robust solution...

Have a look here -->


~K Black

Expert Comment

ID: 12383552
Isn't it a Windows program - front end to a windows mysql database?

Expert Comment

ID: 12388551
there is gui tool for database back on mysql database download the mysqladministrator for microsoft windows at http://dev.mysql.com/downloads/administrator/index.html and install on
onr microsoft box.
backup file are  save as .sql  
you can backup you linuxr box or microsoft box using this tool and you can also manage you mysql server


Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

656 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question