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

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

问题描述

我正在以Windows 7作为操作系统的台式机中使用XAMPP软件包.
这意味着我正在使用MySQL DB和Apache服务器.

现在,我想将我的整个MySQL数据库复制/迁移到我朋友的桌面上,该桌面也使用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.

有什么办法可以做到这一点吗?

Is there any way for me to do that?

推荐答案

从MySQL文件夹(在旧的 xampp 文件夹下)复制数据库文件,但 share bin script 文件夹查看附件图像,以查看需要复制哪些文件(仅绿色框中的文件),并将所有这些数据库文件替换为新安装的 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天全站免登陆