pbootcms3.22导入官方给的mysql数据库的时候,出现以下错误,
错误
静态分析:
分析时发现6个错误。
不应出现的开始声明。 (near “’43′” at position 1)
不应出现的开始声明。 (near “‘url_index_404′” at position 6)
不应出现的开始声明。 (near “‘0′” at position 22)
不应出现的开始声明。 (near “‘2′” at position 26)
不应出现的开始声明。 (near “‘255′” at position 30)
不应出现的开始声明。 (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白名单'),