| Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-27-2008, 03:44 AM
|
#1
|
|
Member
Registered: Jun 2008
Posts: 78
Rep:
|
How can i copt the MYSQL Database to a other server (Database)
Hi!
How can i copt the MYSQL Database to a other server (Database)?
Halvor.
|
|
|
|
07-27-2008, 08:05 PM
|
#2
|
|
Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678
Rep: 
|
It depends on your database type, but look into mysqlhotcopy. Otherwise you can dump the data to a text file and read it in at the other end, but the former method is simpler if supported
Quote:
|
mysqlhotcopy works only for backing up MyISAM and ISAM tables, and ARCHIVE tables
|
|
|
|
|
07-27-2008, 08:06 PM
|
#3
|
|
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 13.37
Posts: 4,082
Rep: 
|
You could just tar up the directory structure and use scp to copy it over. You could also backup the database and tar/ssh the backed up data. It depends what your requirements are. The docs for backing up version 5.0 databases are here
|
|
|
|
07-27-2008, 09:19 PM
|
#4
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 14,943
|
You could use mysqldump to export the db, then just import it back in, or maybe use replication (although that's overkill for a one off).
|
|
|
|
| Thread Tools |
Search 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
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:30 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|