怎样将大Mysql文件导入到远程服务器

By | Mar 16, 2011

首先创建数据库备份
mysqldump -v -u databaseuser -p databasename > db-name.out
然后将备份传送到远程服务器
scp db-name.out root@yourserver.com:/home/user
最后导入数据到新的数据库里
mysql -u newdatabaseuser-p newdatabasename < /home/user/db-name.out

VN:F [1.9.11_1134]
Rating: 3.8/5 (2 votes cast)
VN:F [1.9.11_1134]
Rating: 0 (from 0 votes)
怎样将大Mysql文件导入到远程服务器, 3.8 out of 5 based on 2 ratings

Leave a Comment

If you would like to make a comment, please fill out the form below.

Name (required)

Email (required)

Website

Comments

Spam Protection by WP-SpamFree

© 2007 Cpanel中文教程使用指南 -