Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/59.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如果文件中的mysql数据库是.gz格式,并且有不同的部分,如何恢复?_Mysql - Fatal编程技术网

如果文件中的mysql数据库是.gz格式,并且有不同的部分,如何恢复?

如果文件中的mysql数据库是.gz格式,并且有不同的部分,如何恢复?,mysql,Mysql,我需要一些关于恢复mysql数据库的帮助。我的老板给了我一个.gz格式的数据库备份,它有7个部分。我从.gz文件中提取了一个文件,但它不包括.rar文件中的所有文件。如果提取第一个.rar文件,它将提取其他文件并将其作为一个整体。在我的例子中,在提取第一个.gz文件夹之后,它只提取了第一个。它不会提取其他的。我怎样才能解决这个问题,伙计们?顺便说一下,在我提取第一个文件夹后,它有一个名为“db.backup.1”的文件,当我在文本编辑器中打开它时,它显示了我的数据库和表。里面。我还提取了其他的,

我需要一些关于恢复mysql数据库的帮助。我的老板给了我一个.gz格式的数据库备份,它有7个部分。我从.gz文件中提取了一个文件,但它不包括.rar文件中的所有文件。如果提取第一个.rar文件,它将提取其他文件并将其作为一个整体。在我的例子中,在提取第一个.gz文件夹之后,它只提取了第一个。它不会提取其他的。我怎样才能解决这个问题,伙计们?顺便说一下,在我提取第一个文件夹后,它有一个名为“db.backup.1”的文件,当我在文本编辑器中打开它时,它显示了我的数据库和表。里面。我还提取了其他的,它们都是一样的。如何合并它们?每个文件都有125MB的数据

  • 先把它们解开
  • 在linux中使用append cmd合并它们

    cat file1>>masterfile.sql 等等 cat file2>>masterfile.sql

  • 在所需数据库中导入masterfile.sql


windowzzz版本
-表单命令行运行

copy file1+file2+file3 targetfile

我如何使用windows来实现这一点?好的,我会试试。。谢谢你的帮助。:)