【发布时间】:2013-02-24 09:14:09
【问题描述】:
我正在使用 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)。我尝试导入二进制文件,但当然失败了。如何解决此问题,以便导出的文件在导入时起作用?我在任何其他网站上都没有遇到过这个问题。
谢谢。
【问题讨论】:
-
在发送之前是 gzip 还是 bzip 文件?
-
我已将其设置为 gzip 文件。我只是尝试在不压缩的情况下备份它,它看起来应该如此。为什么压缩它会导致这种情况发生?在压缩文件之前我从来没有遇到过这个问题。
-
因为 gzip 压缩的数据是压缩数据。在您解压缩之前,它是不人类可读的。你基本上是在抱怨你的车在漆成蓝色之后是蓝色的。
-
感谢您的居高临下和尖刻的评论,但我先解压缩文件以检查其内容,然后再在这里发布我的问题。是的,未压缩的文件仍然是二进制格式。如果您没有任何有用的内容要添加,也许您应该避免发表评论。
标签: mysql phpmyadmin export