I think it depends on the sorting of the columns, the sorting of the default database in MySQL utf8_general_ci , where ci at the end means case insensitive.
case sensitive passwords will only work if you store passwords in an encrypted format using the MD5 or PASSWORD function.
show variables like '%collation%'; +---------------------------+-------------------+ | Variable_name | Value | +---------------------------+-------------------+ | collation_connection | latin1_swedish_ci | | collation_database | utf8_general_ci | | collation_server | latin1_swedish_ci | +---------------------------+-------------------+
source share