I want to copy my mysql database from my computer to another computer. How can I do this?

解决方案

How to copy Mysql database from one Computer to another / backup database using mysqldump

We can transfer a MySQL database from one PC to another PC using

mysqldump command.

We have to create dump file of database to transfer database from

one PC to another PC.

MySQL database is not portable database i.e. we cannot transfer it

from one PC to another PC by copying and pasting it.

We can use following method to transfer database.

Creating a dumpfile from database/ Taking backup of MySQL database:

Open command prompt.

Execute following commands to change directory

c: “press enter”

cd program files/MySQL/MySQL Server 5.1/ bin “press enter”

mysqldump -u root -p database_name > database_name.sql “press enter”

Enter password: password of MySQL

Copy sql file and paste it in PC where you want to transfer database.

2. Dumping sql file into database:-

- Open MySQL command line client command prompt.

- Execute following command to create database.

create database database_name;

“press enter” Database name is must as that of your database_name.

Copy that sql file into location “c:/program files/MySQL/MySQL Server 5.1/bin”

*- Now open command prompt and execute following commands.*

>C: “press enter”

>cd program files/MySQL/MySQL Server5.1/bin “press enter”

>mysql –u root –p database_name < database_name.sql “press enter”

Your database is created on PC.

Now in MySQL command prompt check your database.

Another one:1

This best and the easy way is to use a db tools(SQLyog)

With this tools you can connect the 2 databases servers and just copy one database on server a to server b.

For more info

Another one:2

Try something like this:

mysqldump -u root -p lbry > dump-lbry.sql

Then to import it:

mysql -u root -p < dump-lbry.sql

mysql数据库移植到另一台电脑,将mysql数据库从一台计算机复制到另一台计算机...相关推荐

  1. 不同网络下 一台电脑连接另一台电脑的mysql数据库

    不同网络下 一台电脑连接另一台电脑的mysql数据库 首先确保,两台电脑都已经有了基本配置好的可用的mysql数据库 确定一台电脑为服务端,再服务端数据库下,先授权可被其他电脑访问: 如果MySQL是 ...

  2. sql2008“备份集中的数据库备份与现有的xx数据库不同”解决方法 因为是在另一台电脑对同名数据库做的备份,用常规方法还原,提示不是相同数据库,不让还原,在网上找到下面的方法解决了: 一、右击系

    sql2008"备份集中的数据库备份与现有的xx数据库不同"解决方法 因为是在另一台电脑对同名数据库做的备份,用常规方法还原,提示不是相同数据库,不让还原,在网上找到下面的方法解决 ...

  3. 能在一台电脑上装好系统,然后把硬盘换到另外一台电脑上用吗?

    能在一台电脑上装好系统,然后把硬盘换到另外一台电脑上用吗? 2013-08-13 09:53达人无名  | 分类:电脑/网络 |浏览447次 两台电脑不同,但是我只是装系统,驱动什么的都不装 装的是6 ...

  4. mysql登录其他电脑_如何连接另一台电脑的mysql数据库

    假设192.168.1.3为服务器: 首先在ip为192.168.1.103的机子上能够ping 通运行->cmd>ping  192.168.1.3检查是否能ping通: 把两台电脑的I ...

  5. 不同电脑mysql数据库访问_在一台电脑访问另一台电脑的mysql数据库

    1.      假设192.168.1.3为服务器 2.      首先在ip为192.168.1.103的机子上能够ping通 运行->cmd >ping192.168.1.3 检查是否 ...

  6. mysql从一台电脑迁移_mysql数据库迁移到另一台电脑上

    解决办法 mysql要转换到另一台机器上面,最重要的要考虑以下几个问题 1.数据库使用什么存储引擎,如果是myisam的话,可以把data目录复制移走.但如果是innodb的话,千万不要用这种方法,会 ...

  7. 一台电脑部署两个或多个 Hexo 博客(一台电脑使用两个或多个 GitHub 账号)

    由于个人原因需要在一台电脑上部署两个Hexo博客,本来以为挺简单,没想到问题重重,首先是一个GitHub账号只能搭建一个Hexo博客,因此就需要使用其他GitHub账号:其次是一台电脑绑定两个GitH ...

  8. 将Windows驱动程序从一台计算机复制到另一台计算机

    Driver problems are a source of never-ending issues in the Windows world. Often you'll have a workin ...

  9. android 复制文件 代码,将android项目从一台计算机复制到另一台计算机后找不到classes.dex文件...

    我已经将两个android项目从一台机器复制到另一台机器上,并且我正试图在模拟器上运行相同的项目,但是每次我得到两个项目相同的错误.错误如下: C:\Users\Abhi\Desktop\Ashish ...

最新文章

  1. 对于继电器线圈奇怪的H-B曲线的实验测量
  2. android去掉button默认的点击阴影
  3. VS2015+MySql+EF6采坑经验总结
  4. JSP中页面向Action传递参数的几种方式
  5. 【51CTO/BBS】请教: SQL里有没有字符串组合Join的函数??
  6. 快速修剪技巧_20个相见恨晚的CAD画图神技巧,让你效率飞升!
  7. html5播放视频自动循环播放,HTML5 通过Vedio标签实现视频循环播放的示例代码
  8. 孙鑫VC学习笔记:第十二讲 (五) 往win.ini的文件中写入数据
  9. oracle matlab函数返回值,如何实现在Oracle中应用存储过程调用MatLab函数(2)
  10. 48.网络安全渗透测试—[穷举篇11]—[webshell密码破解(asp/aspx/php)]
  11. @Deprecated注解
  12. 阿里巴巴投资1亿美元在成都建立西部基地,成都的人才快点抓紧啊
  13. 树莓派显示器分辨率的调整,黑边的修改方法
  14. Xshell6 提示要继续使用此程序,您必须应用最新的更新或使用新版本
  15. 【日本語勉強】「モデレート」とはどういう意味になるのでしょうか
  16. 新人小白如何快速适应职场 怎么更好学习技术
  17. 【题】【矩阵】NKOJ 1901 喜欢奇数的面包师
  18. 计算机网考模拟系统,全国计算机等级考试考网模拟系统
  19. 微信H5网页链接如何自定义分享标题,简介和图片
  20. 大数据_MySQL之DQL(数据查询语言)

热门文章

  1. Mat,Iplimage,vector,vector_vector_Point2f等类型之间的相互转换
  2. 基于C++的骨架提取的鼻祖算法
  3. Python中if__name__==__main__:该如何理解
  4. curl: (3) [globbing] error: bad range specification after pos 150的解决方法
  5. 使用C++ stringstream来进行数据类型转换
  6. LTE-连接态下的DRX
  7. C++ STL的reserve函数
  8. 函数返回类的对象与拷贝构造函数
  9. Codeforces 900D Unusual Sequences:记忆化搜索
  10. MySQL 解压版创建用户密码