Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old March 15th, 2004, 11:42 AM
mivec mivec is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: georgetown,penang,malaysia
Posts: 2 mivec User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to mivec Send a message via AIM to mivec Send a message via Yahoo to mivec
copying tables from a database

hi all,
i am not too sure if i should post this question here but anyway, here goes. in phpmyadmin, i have two databases with database 1 and database 2. now database 1 has a tblmembers that would be needed in database 2. how do i copy that tblmembers from database 1 to database 2 with the exact fields that tblmembers have in database 1?
i was told of a GUI that can do that. or is by code?can some one pls help.thank you.


Reply With Quote
  #2  
Old March 15th, 2004, 12:55 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: copying tables from a database

You can do this in the phpmyadmin.
Select the table you want to copy.
Then click on export link.
Export SQL, check both complete and extended inserts.
Now click on Go button and you will get a new page with all data from your table.
Copy this, change you databases, click on SQL and paste it into the field.
That's all.

If you have a shell access then it is possible to copy the table files and then type phpadmin flush-tables...

Reply With Quote
  #3  
Old March 15th, 2004, 01:03 PM
Blindeddie Blindeddie is offline
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: NJ - USA
Posts: 2,152 Blindeddie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 4
RE: copying tables from a database

There is an easier way to do it, if you go to the db that holds the table you want to move, and view the structure of that table, you will see a tab at the top called 'Operations' select that tab and a few lines down you will see 'Copy Table to (database.Table). Select the database you want to copy to in the dropdown, type in a table name, then select the Structure and Data radio button. Click Go and the table will be copied to the selected DB.

Reply With Quote
  #4  
Old March 15th, 2004, 01:12 PM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: copying tables from a database

It seems there is always an easier way to do things. However this can't be used if the databases are on different machines.

Reply With Quote
  #5  
Old March 17th, 2004, 04:49 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
problem resolved

thank you ashkan and blindeddie...it worked....

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > copying tables from a database


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 5 hosted by Hostway
Stay green...Green IT