我的知识记录

PBOOTCMS3.22导入mysql数据库提示错误。错误 静态分析: 分析时发现6个错误。 不应出现的开始声明

pbootcms3.22导入官方给的mysql数据库的时候,出现以下错误,

错误

静态分析:

分析时发现6个错误。

  1. 不应出现的开始声明。 (near “’43′” at position 1)

  2. 不应出现的开始声明。 (near “‘url_index_404′” at position 6)

  3. 不应出现的开始声明。 (near “‘0′” at position 22)

  4. 不应出现的开始声明。 (near “‘2′” at position 26)

  5. 不应出现的开始声明。 (near “‘255′” at position 30)

  6. 不应出现的开始声明。 (near “‘跳转404′” at position 36)

 

SQL 查询:

(’43’,’url_index_404′,’0′,’2′,’255′,’跳转404′)

MySQL 返回: 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''43','url_index_404','0','2','255','跳转404')' at line 1

 

解决方法如下,编辑mysql数据库文件找到大约137行

 

将分号改为英文逗号,然后保存再去导入,就可以了

('42','ip_allow','','2','255','IP白名单'),


PBOOTCMS3.22导入mysql数据库提示错误。错误 静态分析: 分析时发现6个错误。 不应出现的开始声明

标签:

更新时间:2025-12-06 20:31:28

上一篇:PbootCMS备案号加上工信部网址链接

下一篇:Pbootcms 提示PDO方式连接数据库错误:invalid data source name