创建数据库:mysql> create database test;选择数据库:mysql> use test;设置数据库编码格式:mysql> set names utf8;导入数据库文件: mysql> source /home/username/test.sql;