如果你拿到的数据文件是:*.sql,那么你可以按照下列方式导入数据到MySQL:
mysql -u[username] -p [database_name] < [xxx.sql,This is your MySQL Data Dump]

另一种方式: 在“mysql>”提示符下,进入需要导入数据的目标库中:

执行导入:
source [*.sql,This is your Data File.]

————————————————————————————————
Done。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装