Home > Database > Mysql Tutorial > body text

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

WBOY
Release: 2016-06-01 13:07:20
Original
1381 people have browsed it

1,创建一个数据库:

  mysql> create database xxx;


2,使用该数据库:

mysql>use xxx;


3,导入sql文件:

mysql>source xxx.sql;




source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template