Home  >  Article  >  Database  >  通过命令行,怎么把sql文件导入mysql中_MySQL

通过命令行,怎么把sql文件导入mysql中_MySQL

WBOY
WBOYOriginal
2016-06-01 13:07:201341browse

1,创建一个数据库:

  mysql> create database xxx;


2,使用该数据库:

mysql>use xxx;


3,导入sql文件:

mysql>source xxx.sql;




Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn