IT Community - Software Programming, Web Development and Technical Support

Backup of Mysql Database

This is a discussion on Backup of Mysql Database within the Database Support forums, part of the Web Development category; How to take backup of all the tables of the database? Is there any command or php script for taking ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 04-24-2007, 07:12 AM
ewriter ewriter is offline
D-Web Trainee
 
Join Date: Apr 2007
Posts: 19
ewriter is on a distinguished road
Default Backup of Mysql Database

How to take backup of all the tables of the database? Is there any command or php script for taking backup of whole database?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-24-2007, 07:06 PM
GTL GTL is offline
D-Web Trainee
 
Join Date: Apr 2007
Posts: 16
GTL is on a distinguished road
Default Re: Backup of Mysql Database

You can go into phpMyAdmin and select the database you want to backup. Then at the bottom of the list of tables tick, "Check all" and then go to "Export" from the drop down menu at the bottom.

Then you just download the SQL file and there is your database backup
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 05-03-2007, 04:53 AM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 386
Murali is on a distinguished road
Send a message via AIM to Murali
Default Re: Backup of Mysql Database

Hi,

Here are some tips of taking Backup in MYSQL

• Taking Backup of Database Objects using MYSQL Administrator Tools.
• Options available in TOAD for MYSQL if u has installed it.
• Even u can write the script in the DB Server for Regular Backups with the help of your server administrator.
• U might manually take regular Backups for the Database Objects using mysqldump command from the Command prompt.


In MYSQL Administrator Tool

1. Connect your Database with the proper Connection String.
2. Click the Backup option on the left side of the browser.
3. Click the New Project button at the right down corner.
4. Give some name for the Backup Project.
5. Select the database which you want to take the backup.
6. Specify the file name and the location of the backup file.

In TOAD for MYSQL

1. Go to the Tools in the Top Menu.
2. Click the Export Wizard.
3. Select the Export Category [tables, views and Database].
4. Proceed to take the Backup in the specified path.

Server Side Script

Just have an idea of server script for taking the regular backups, but don’t know the code for the script.

Mysqldump

mysqldump -u <user name> -p <Password> --routines <Database Name> > <Path for the output file>

Routines define the backup of Stored Procedures and u can take a single table dump by specifying the table name after the database name.
__________________
-Murali..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I convert a Access database to a MySQL database? itbarota PHP Programming 2 09-13-2007 10:04 AM
How automatically backup of Transaction log for specific Database oxygen Database Support 1 07-24-2007 05:31 AM
Database Backup venkatesan.N Database Support 1 07-20-2007 09:55 AM
How to use the myphp in mysql database sivaramakrishnan PHP Programming 1 07-19-2007 08:14 AM
How to use the myphp in mysql database sivaramakrishnan Database Support 0 07-19-2007 05:01 AM


All times are GMT -7. The time now is 08:22 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0