mysql错误1064:从mysql 5.5.50-cll更新到mysql 5.6.31之后

时间:2016-09-08 05:25:33

标签: mysql syntax-error mysql-error-1064

我正在将我的网站移动到新主机,我有这个错误:

注意:错误:您的SQL语法中有错误;检查手册    对应于您的MySQL服务器版本,以获得正确的语法    在第1行oc_first_page_content附近使用

Error No: 1064  
SELECT content, link, background FROM `oc_first_page_content`
    in /home/tiffanyd/public_html/system/library/db/mysqli.php on line 41
Notice: Trying to get property of non-object in /home/tiffanyd/public_html/catalog/controller/module/html.php on line 14

这是mysql代码:

CREATE TABLE IF NOT EXISTS `oc_first_page_content` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `content` mediumtext CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
  `content_en` mediumtext CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
  `link` varchar(240) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
  `background` varchar(240) CHARACTER SET utf8 COLLATE utf8_persian_ci NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=12 ;

怎么能解决这个问题? :(

0 个答案:

没有答案