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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySql Database transfer from one server to a remote server

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I have a database ready in Mysql.I have to host my site at the remote server which provides the Mysql database in Linux.Now I want to transfer my entire db out there with the data in it.Can any one tell me how it can be done.thanxs in advance.
 
If you have access to the MySQL data directory (where the database files are located). You can just tar the entire directory from one server to another.

else use the 'mysqldump' utility.

mysqldump --opt database > backup-file.sql

You can read this back into MySQL with:

mysql database < backup-file.sql

cheers devnull22

--
Apparently if you play the Windows NT CD backwards you hear satanic messages. If you think that's bad, play it forwards and it installs Windows NT !
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top