如何将我的 MySQL 数据库转移到另一台计算机? [英] How to transfer my MySQL database to another computer?

查看:24
本文介绍了如何将我的 MySQL 数据库转移到另一台计算机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在自己的桌面上使用 XAMPP 包,操作系统为 Window 7.
这意味着我正在使用 MySQL DB 和 Apache 服务器.

现在我想将我的整个 MySQL DB 复制/迁移到我朋友的桌面,它也是以 Window 作为操作系统,并且还使用 XAMPP 包.

I am using XAMPP package in my own desktop with Window 7 as OS.
That means I'm using MySQL DB and Apache server.

Now I would like to copy/migrate my whole MySQL DB to my friend's desktop, which is also with Window as OS, and also using XAMPP package.

我有什么办法吗?

推荐答案

从 MySQL 文件夹(旧 xampp 文件夹下)复制数据库文件,除了 share,binscript 文件夹查看附件图片以查看需要复制哪些文件(仅绿色框内的文件)并替换新安装的 xampp 目录中的所有这些数据库文件在 MySQL 文件夹中.

Copy database files from MySQL folder (under old xampp folder) except share,bin, and script folder see attached image to see which files need copy (only files with in green box) and replace all these database files in new installed xampp directory in MySQL folder.

重启 xampp 启动 MySQL 并打开数据库和表以确保其正常工作.

Restart xampp start MySQL and open database and table to make sure its working.

这篇关于如何将我的 MySQL 数据库转移到另一台计算机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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