1 l+ ?* }$ U* S# [0 T) ^+ _1 y7 `, S9 S- |0 l2 c
[Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.; A" p% `# e. B+ q+ I" G! X# b
說明: 千萬不能照它建議用"UTF8MB4",否則無法成功啟動 ! U7 l/ z* J; Y 2 h: ~: X. L7 B6 L# @. f; S(2)' u; N7 [* t4 O( o1 ]7 Q9 y; y
(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 'system>0' at line 18 d h9 F8 M7 j! n0 s
SELECT COUNT(*) FROM common_usergroup WHERE type='special' and system>07 e: n @$ m7 B) L
4 y* ^ C; t7 j(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 'groups = '' AND starttime<=1532077291 AND (endtime>=1532077291 OR endtime=0) ORD' at line 1 5 Y! a. G: n k* k2 hSELECT * FROM forum_announcement WHERE type!=2 AND groups = '' AND starttime<=1532077291 AND (endtime>=1532077291 OR endtime=0) ORDER BY displayorder, starttime DESC, id DESC LIMIT 1 6 f) g' O& A4 o6 W/ V 9 r+ ~' X$ n1 U9 ~7 ?* A4 ^; V8 a因為MySQL 8.0+將system和groups作為了關鍵字,所以不能直接在SQL中將system和groups這兩個詞作為數據庫、數據表、數據表字段中的任意一種使用,如果數據庫名或數據表名或數據表字段名使用了system或groups作為名字,必須使用一對反引號引用起來。寫作`system`或`groups`。: c$ Z# u# T [% T4 Q. q# O