Home > Database > Mysql Tutorial > mysql数据库从服务器移植到个人PC的方法_MySQL

mysql数据库从服务器移植到个人PC的方法_MySQL

WBOY
Release: 2016-06-01 13:21:15
Original
816 people have browsed it

bitsCN.com 一、使用mysqldump

1、mysqldump备份数据库

1. 进入mysql安装文件的bin目录下,如:D:/mysql5.5/bin>

2. 用 mysqldump -uroot -p123 qh>d:/qh.sql 命令备份数据库

mysqldump -uroot -p123 登陆到数据库用户为 root 密码为 123

qh>d:/qh.sql 将 数据库qh 备份到 d:/qh.sql

2、mysqldump还原数据库

1. 新建一个空的数据库

2. 用 mysql -uroot -p123 aa
把 d盘的qh.sql 还原到 数据库aa 中

二、使用SQLyog UItimate-MySQL GUI v8.53(http://www.webyog.com/en/downloads.php)备份和还原数据库bitsCN.com

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template