mantis安装后总是报错
谁能帮我一下,mantis创建项目时报错,APPLICATION ERROR #401
数据库查询失败。数据库返回的错误信息是:#1267: Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation '=' 查询:SELECT COUNT(*)
FROM mantis_project_table
WHERE name='项目'
我哪块设置的不对呀? 具体没用过
帮顶 顶! 已经说的很清楚了:
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
问题是 MySql charset 原帖由 bill_hen 于 19-9-2009 00:46 发表 http://bbs.51testing.com/images/common/back.gif
已经说的很清楚了:
Illegal mix of collations (latin1_swedish_ci,IMPLICIT) and (utf8_general_ci,COERCIBLE)
问题是 MySql charset
谢谢了,已经改过来了,是字符集的问题,呵呵! 请问如何修改mysql 的字符集呢? 可以通过phpmyadmin 界面修改吗? 找到解决办法了。
实际测试mantis 的工作流程,发现不能创建中文名称的项目。上网查询发现是数据库字符集不对造成的。
vi /etc/my.cnf
如果是windows 则是修改my.ini 文件
在下添加
default-character-set=utf8
在下添加
default-character-set=utf8
查看数据库默认字符集
# mysql -u root -p
如果现实下面信息就配置成功了
mysql> show variables like 'collation_%';
+----------------------+-----------------+
| Variable_name | Value |
+----------------------+-----------------+
| collation_connection | utf8_general_ci |
| collation_database | utf8_general_ci |
| collation_server | utf8_general_ci |
+----------------------+-----------------+
3 rows in set (0.02 sec)
mysql> show variables like 'character_set_%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8 |
| character_set_connection | utf8 |
| character_set_database | utf8 |
| character_set_filesystem | binary |
| character_set_results | utf8 |
| character_set_server | utf8 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.02 sec) 我一般不怎么使用utf-8的字符集
页:
[1]