数据库远程复制/导入到本地

来源:互联网 发布:360网络认证 编辑:程序博客网 时间:2024/06/05 20:34

eg. 从主机1.1.1.1复制数据库到本地

1. mysqldump   -h1.1.1.1   -u用户名    -p密码  数据库名 >  temp.sql

2. 登录本地mysql

3. 选择要导入的数据库, use temp

4. source temp.sql 



0 0