Current location: Hot Scripts Forums » Programming Languages » PHP » database backup


database backup

Reply
  #1 (permalink)  
Old 09-27-04, 02:19 AM
scorpioy scorpioy is offline
Newbie Coder
 
Join Date: May 2004
Location: CA
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
database backup

I'm using this to backup my database:
mysqldump --tab=D:/db_back_up --opt myDB

Then I got a .sql file which contains table definition. I also got .txt file which has information for each row in the table in a format that looks like the result of query the * from the table.

I thought it would generate the sql format so that I can pipe it to the database directly, just like generated table definition file. Does anyone know why would it be like this? Is there a way that can generate table row information in sql format (so that in case my database crashes, I can remake one pretty quick by just piping those backup files into the database)?

Thanks
Reply With Quote
  #2 (permalink)  
Old 09-27-04, 09:59 AM
Bobbi Bobbi is offline
Newbie Coder
 
Join Date: Sep 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
I usually dump my DB with something like this:

mysqldump -uUSERNAME -pPASSWORD DATABASE > dumpfile.sql

Works fine and I never noticed any .txt files being created ... might be a windows thing though.
__________________
Bobbi - Next-Gen ITsolutions
http://www.ngemu.com - http://www.ngits.de
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Form to update a MySQL database? Scoobler PHP 9 09-04-08 01:41 AM
Script for uploading data from local database to production database pual_cruzs PHP 1 07-06-04 12:44 AM
Share database over the internet nitinkedia PHP 0 07-11-03 12:22 AM
Share database over the Internet nitinkedia New Members & Introductions 1 07-10-03 02:50 PM


All times are GMT -5. The time now is 04:33 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.