跨服务器移动mysql文件 [英] Moving mysql files across servers

查看:41
本文介绍了跨服务器移动mysql文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个庞大的 MySQL 数据库(大约 10 GB),我需要将它复制到不同的服务器(slicehost).我不想进行数据库转储并重新导入 b/c,我认为这将花费很长时间.是否可以将原始 SQL 文件从一台机器移动到另一台机器,设置一个相同的 mysql 服务器,然后切换开关?

I have a massive MySQL database (around 10 GB), and I need to copy it to a different server (slicehost). I don't want to do a DB dump and reimport b/c I think that would take forever. Is it possible to just move the raw SQL files from one machine to the next, setup an identical mysql server, and flip the switch?

推荐答案

它应该可以工作.

这是mysqlhotcopy工具使用的原理,尽管此工具旨在在服务器运行时运行.

This is the principle that the mysqlhotcopy tool uses, although this tool is meant to be run while the server is operating.

这篇关于跨服务器移动mysql文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆