将DB导入PhpMyAdmin时出现奇怪错误

时间:2017-04-19 18:17:00

标签: mysql database phpmyadmin export

我尝试将一个数据库从一个主机导入另一个主机,但在尝试导入目标服务器时出现此错误:

Error
Static analysis:

18795 errors were found during analysis.

Unexpected character. (near ":" at position 6832)
Unexpected character. (near ":" at position 6835)
Unexpected character. (near "{" at position 6836)
Unexpected character. (near ":" at position 6838)
Unexpected character. (near ":" at position 6842)
Unexpected character. (near ":" at position 6846)
Unexpected character. (near ":" at position 6964)
Unexpected character. (near ":" at position 6968)
Unexpected character. (near ":" at position 6972)
Unexpected character. (near ":" at position 7079)
Unexpected character. (near ":" at position 7083)
Unexpected character. (near ":" at position 7087)
Unexpected character. (near ":" at position 7196)
Unexpected character. (near ":" at position 7200)
Unexpected character. (near ":" at position 7203)

并继续......

我尝试了什么:

  • 导出gziped数据库并尝试导入 - >没有成功。
  • 尝试取消选中“在导出前用反引号括起表名和列名(保护由特殊字符或关键字组成的列名和表名)”,也没有成功。

我尝试导入数据库的Phpmyadmin版本是版本:4.5.0.2,我从中获取数据库备份版本的版本为4.0.10.14。

有人可以帮我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

当尝试从同一主机将数据库备份导入phpMyAdmin时,我解决了类似的问题。由于该报告提到了一些换行符的第一个错误,所以我认为它必须与编码有关(仍然所有文件均为utf-8)。

当我简单地导入解压缩的.sql文件时,一切都很好,所以这一定是phpMyAdmin(在我的情况下为4.8.5版)中即时解压缩程序中的一些错误。