Mysql查询的时候不区分大小写,若想区分大小写,需要加一个关键字BINARY,例如下面的语句SELECT * FROM member AS m WHERE BINARY m.username='HxH_TrutsWorks';