网站用的程序是askbot ,建立在debian操作系统的vps上。其他的都配置好了,可是却无法提问,(或者有时可以进行英语提问,但无法打开所提问题的链接),如下图所示。去问了一下程序的作者。,他给我回复:
This is a problem in your database.
I create it this way:
create database askbot DEFAULT CHARACTER SET UTF8 COLLATE utf8_general_ci;
grant all privileges on dbname.* to dbuser@localhost identified by 'dbpassword';
Maybe you'll need to go through the file my.cnf (mysql config) and set all encodings to UTF8.
Somewhere you have incompatible character encodings.
Thank you.
我现在不知道如何去改这些数据库问题,大家教我一下吧,谢谢了。
你的数据库编码不对。
那人是让你删了数据库,重新建,而且要设置数据库编码为UTF-8。
不过我建议你可以尝试:
在my.ini中添加如下内容
[mysql] or [client]
default-character-set=utf8
修改库编码
mysql> ALTER DATABASE test
DEFAULT CHARACTER SET utf8 COLLATE utf8_bin