Home  >  Article  >  Backend Development  >  400多个sql文件,怎么导入到mysql中

400多个sql文件,怎么导入到mysql中

WBOY
WBOYOriginal
2016-06-13 13:36:501022browse

400多个sql文件,如何导入到mysql中?
我现在在用phpmyadmin,好像别人也是用这个软件备份出来的东西,我如何还原?不会是一个一个的还原吧?每个文件有2m大

------解决方案--------------------
写个批处理工具.计划任务 每隔多长时间导入一个文件 。
------解决方案--------------------
直接导入数据库
------解决方案--------------------
看到种方法,不妨一试:

source.sql文件里面这么写:
source C:/sql/1.sql;
source C:/sql/2.sql;
source C:/sql/3.sql;
....

然后source source.sql;
没试过。

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