错误编号:1064
问题分析:
安装完产品之后,前台访问时出现 MySQL 错误。如下:
- <p>1、MySQL Query Error</p><p>SELECT value FROM `%s`.5xx_%s WHERE name='noteexists'
- 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 '.5xx_%s WHERE name='noteexists'' at line 1</p><p>2、MySQL Query Error
- SELECT value FROM `%s`.`%s`.%s WHERE
- name='noteexists'
- 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
- '.%s WHERE name='noteexists'' at line 1
- </p>
CODE: [COPY]
解决方法:
1、数据表前缀不要使用数字开头,建议将产品重新安装一下。
2、建议检查一下 UCenter 目录下的 data/config.inc.php 和应用下面的配置文件中的配置信息是否正确。这里需要注意一下,应用下的配置文件中的 define('UC_DBTABLEPRE', '`xx`.uc_'); xx 是 UCenter 的数据库名,但是 UCenter 下的配置文件中的 define('UC_DBTABLEPRE', 'uc_'); UC_DBTABLEPRE 后面的 ‘uc_’ 前不需要再加任何信息。
