General SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesGeneral SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 2nd, 2003, 02:00 AM
qutaibah qutaibah is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 11 qutaibah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
backing up my tables

Hi all,

can some one help me back up my tables in MySQL. I want to format my computer, but first, I need to get my tables off the computer and plant them on another compter.

any thoughts?
thanks,
Qutaibah

Reply With Quote
  #2  
Old February 2nd, 2003, 03:05 AM
MERSAL MERSAL is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 7 MERSAL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Reply With Quote
  #3  
Old February 2nd, 2003, 01:54 PM
qutaibah qutaibah is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 11 qutaibah User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
command line

Thanks MERSAL for your response,

I I was thinking of using the command line. is there a way where I can back up my MySQL table from my shell account.

thanks
Qutaibah

Reply With Quote
  #4  
Old February 2nd, 2003, 11:07 PM
laidbak laidbak is offline
you know how we do
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jun 2002
Location: In Tha IE -- San Bernardino COUNTY
Posts: 788 laidbak User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 4 m 2 sec
Reputation Power: 7
Send a message via ICQ to laidbak Send a message via AIM to laidbak Send a message via MSN to laidbak Send a message via Yahoo to laidbak
Hey buddy,

Just use the handy mysqldump application.
If you have the mysql client tool in your path, you should have mysqldump as well.


At your command prompt, or in your script, just type this:

mysqldump -h <ip or domain> -u <username> --password=<your_password> <dbname> <tablename> > <FileToStoreItIn>

For example:

mysqldump -h 192.168.0.150 -u root --password=badpassword test test_table > testdb.sql

or just leave out the table name to get the whole database



Hope this helps

--
Wil Moore III, MCP
wil@wilmoore.com
www.laidbak.net

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesGeneral SQL Development > backing up my tables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway