How to transfer my MySQL database to another computer?(如何将我的 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,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 数据库转移到另一台计算机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何将我的 MySQL 数据库转移到另一台计算机?
基础教程推荐
- 如何在 Laravel 中使用 React Router? 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- 如何替换eregi() 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
