Add to Favorites
Hosting Discussion
 

forgot password?


Reply


Old
  Post #1 (permalink)   02-14-2002, 09:16 AM
HD Addict
 
Homer's Avatar
 
Join Date: Jan 2002
Posts: 122

Status: Homer is offline
If you have shell access it's pretty easy:

mysqldump -uUSER-ID -p DATABASE-NAME > DUMP-FILE.sql

Where:

USER-ID is your mysql user-id
DATBASE-NAME is your mysql database
DUMP-FILE is the dump (backup) file you want to create

This will backup all the table structures as well as create insert statements for all your data. Then ftp DUMP-FILE to the new host.

On the new host you run the following:

mysql -uUSER-ID -p DATABASE-NAME < DUMP-FILE.sql

This will reload the data.

You can do the same thing with phpMyAdmin.
 
 
 


Old
  Post #2 (permalink)   02-16-2002, 10:03 PM
HD Newbie
 
Join Date: Feb 2002
Location: 127.0.0.1
Posts: 7

Status: ffeingol is offline
If you have it, mysqlhotcopy is something to look at for backups. It's a perl script. It's very fast for backups.

Frank
__________________
www.serverexpert.com - Help with your servers
www.webmasters-resources.com Resources for webmasters
 
 
 


Old
  Post #3 (permalink)   02-17-2002, 12:07 PM
HD Newbie
 
Join Date: Jan 2002
Posts: 35

Status: Daniel is offline
Or if you don't have shell access:

http://www.users.f2s.com/faq/backupdb.php
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On