Home > Database > Mysql Tutorial > body text

mysql 命令模式下导入.sql文件

WBOY
Release: 2016-06-07 17:51:16
Original
992 people have browsed it

以前有介绍过很多关于数据库导入,今天我们要说的实例是在DOS下导入数据库文件的一种方法,有需要的朋友可以看看。

进入 的 bin目录

如果是把sql导入已经存在的中

 代码如下 复制代码
mysql -u username -p databasename

如果sql文件里面是包含 创建数据库一起的,那么可以直接用

 代码如下 复制代码

 mysql -u username -p

Related labels:
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!