Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying tables between datasources

Status
Not open for further replies.

gm456

Programmer
Aug 4, 2000
11
0
0
GB
Is there a simple way of moving a table between different databases on MySql?

Basically, I want to split one database into two or three, and place various tables into each.

TIA

GM
-
 
You may use the mysqldump-tool (linux-box) to transform your database into an ascii-file
within "create table.." and" insert value into.."-syntax
(or better, use the phpMyAdmin-tool with the "View dump (schema) of database"-button plus the
"send" checkbox).
Then, edit it and reimport it somehow like
"mysql [some options about the database] > textfile" on the console (sorry, i dont have
the exact syntax yet) or again with the phpMyAdmin using
the "Run SQL query/queries on Location of the textfile"
- Button.

Hope it helps.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top