我尝试将一个数据库从一个主机导入另一个主机,但在尝试导入目标服务器时出现此错误:
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)
并继续......
我尝试了什么:
我尝试导入数据库的Phpmyadmin版本是版本:4.5.0.2,我从中获取数据库备份版本的版本为4.0.10.14。
有人可以帮我解决这个问题吗?
答案 0 :(得分:0)
当尝试从同一主机将数据库备份导入phpMyAdmin时,我解决了类似的问题。由于该报告提到了一些换行符的第一个错误,所以我认为它必须与编码有关(仍然所有文件均为utf-8)。
当我简单地导入解压缩的.sql文件时,一切都很好,所以这一定是phpMyAdmin(在我的情况下为4.8.5版)中即时解压缩程序中的一些错误。