Home  >  Article  >  Database  >  MYSQL的导入导出与还原备份

MYSQL的导入导出与还原备份

WBOY
WBOYOriginal
2016-06-07 16:23:071452browse

导入与导出主要牵扯到两个命令source和MySQLdump: 1:导入:进入MySQL命令行中,进入任意一个将要被导入的数据库,再导入。具体的命令如下:进入Windows的dos命令行'----------mysql -u root -p-------------输入进入数据库的密码------create database shu

   导入与导出主要牵扯到两个命令source和MySQLdump:

  1:导入:进入MySQL命令行中,,进入任意一个将要被导入的数据库,再导入。具体的命令如下:进入Windows的dos命令行'---------->mysql -u root -p------------->输入进入数据库的密码------>create database shujuku;------------>use shujuku;--------------->source 你要导入的数据库文件的绝对路径;

  2:导出:进入windows的dos命令行,mysqldump -u root -p 要导出的数据库>你想要导出的地址;

  还原等同于导入;备份等同于导出。

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