» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > MySQL Forums

MySQL Forums Share Your Ideas and Tips about MYSQL. Ask questions about MYSQL. Table Design and Much More...

Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2006, 10:31 AM
kelly kelly is offline
OSP Starters
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
kelly is on a distinguished road
Default backing up portions of DB

I have a DB of NFL players and stats. What I want to do is a sql 'backup' of just parts of 3 tables i.e. create a new DB for each team. I have tables for nflteams, players and player stats for all the NFL. I want to create a DB for say just the Rams.
help
regards
kelly -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 07-22-2006, 10:33 AM
hannah hannah is offline
OSP Addicts
 
Join Date: Apr 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
hannah is on a distinguished road
Default

This should work

Try using the "--where" option of mysqldump.
For example, assuming you have a database "nfl_database", containing table "players" , one of whose columns is "teamname":
mysqldump --user=username --password=password --where="teamname = 'Rams'" nfl_database players > players_rams.sql

all the best -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
backing up manually? Jkaran Web Hosting Industry 1 02-02-2007 07:33 AM
backing up the site? odopher Web Hosting Industry 1 01-19-2007 06:24 AM
backing accounts?? Simroz Reseller Hosting Forum 1 11-13-2006 04:35 AM
database backing up... santiago MySQL Forums 1 10-02-2006 07:27 AM


All times are GMT. The time now is 08:41 PM.