• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

move tables from one computer to another?

 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,
how can I move tables from one computer to another computer?(database is mysql)
Thanks
Elahe
 
Manoranjan Mishra
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can take the backup and copy the backup file and restore it in any computer which has mysql.. For details regarding backup and restore goto:
http://www.mysql.com/doc/B/a/Backup.html
 
Dave Vick
Ranch Hand
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the fast and easy way - and probably dangerous too.
go to the data directory under mySQL and open the file with the name of the database you are working with, there are three files for each table in the database.
Copy the three files from the database folder of one mySQL install to the same place on the new machine. You'll have to stop and restart mySQL but after that it should be ok.
Dave
 
Elahe Shafie
Ranch Hand
Posts: 291
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Many thanks Dave...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic