Home > Database > Mysql Tutorial > mysql导入sql文件_MySQL

mysql导入sql文件_MySQL

WBOY
Release: 2016-06-01 13:28:50
Original
988 people have browsed it

bitsCN.com

mysql导入sql文件

 

刚解除mysql,有很多东西都不懂,导入一个sql文件就搞了很久,不过现在终于可以成功了。

在mysql中导入sql文件,两种方式,一种就是利用命令行:

mysql>source D:/your.sql

记着要刷新啊,刷新的按键在工具栏中第六个图形按钮,三角形圆形方块的那个,或者快捷键(F5)。

另外一种就是利用sqlyog导入:

随便选择一个数据库或者顶头的root@localhost,右键点击,选择导入->执行sql脚本(或者快捷键ctrl+shift +Q)即可。

导入成功后要记得刷新,刷新要选择root@localhost(用户),刷新还是之前的那个按钮,快捷键(F5)

bitsCN.com
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