Chinaunix首页 | 论坛 | 博客
  • 博客访问: 617719
  • 博文数量: 184
  • 博客积分: 10057
  • 博客等级: 上将
  • 技术积分: 2505
  • 用 户 组: 普通用户
  • 注册时间: 2007-05-31 16:34
文章分类

全部博文(184)

文章存档

2010年(5)

2009年(104)

2008年(75)

我的朋友

分类: LINUX

2009-04-20 21:45:11

The following command will allow you to copy a table from the MySQL database on a remote host, to a different MySQL database on your local host.

mysqldump -h [remote IP] -u[user] -p[pass] from_db from_table | mysql -u[user] -p[pass] target_db


The first username and password are for the remote database and the last ones are for your local database.
阅读(911) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~