Home >Database >Mysql Tutorial >mysql数据库的导出与导入_MySQL

mysql数据库的导出与导入_MySQL

WBOY
WBOYOriginal
2016-06-01 13:13:45960browse

导出

在dos节目,切换到mysql按照目录的bin下,输入以下命令

mysqldump -u root -p nxu_life > nxu_life2.sql

执行完成后,就可以看到在bin目录下

导入

打开mysql,source D:/nxu_life.sql;

如果找不到目录,就先切换到d盘

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