0

我正在使用 phpmyadmin(版本 3.3.8)导出我与托管服务提供商一起拥有的网站的数据库(因此我唯一的备份方法)。当我进行导出时,我设置了以下选项:

Export: SQL

Within the OPTIONS group; under the STRUCTURE sub group,
Selected the check box next to "Structure"
Selected the check box labeled "Add AUTO_INCREMENT value"
Selected the check box labeled "Enclose table and field names with backquotes"

Within the OPTIONS group, under the DATA sub group:
Selected the check box marked "Complete inserts".
Selected the check box marked "Extended inserts".
Selected the check box labeled "Use hexadecimal for binary fields" may be selected
Selected "INSERT" in the combo box labeled "Export type:"

Selected to gzip the exported file.

生成的文件看起来像是二进制文件(而不是我预期的 SQL)。我尝试导入二进制文件,但当然失败了。如何解决此问题,以便导出的文件在导入时起作用?我从来没有在任何其他网站上遇到过这个问题。

谢谢。

4

1 回答 1

0

通过不选择压缩导出的文件,我找到了解决问题的方法。由于某种原因,在这种特殊情况下,选择压缩输出会导致导出损坏。为什么会这样,我不知道,因为我之前已经成功使用过这个选项(也许托管服务提供商有某种奇怪的设置)。如果您遇到同样的问题,请尝试不使用压缩,看看它是否为您解决了问题。

于 2013-03-08T18:43:51.377 回答