webworm
webworm

Reputation: 11019

MySQL - Proper "Collation" for case-sensitive text? UTF8-bin?

In using MySQL (v5.0.77) there are a lot of choices for Collation. I was originally thinking of UTF8-general_ci however MySQL shows it as being case-insensitive which I think would cause problems for objects such as passwords. If I want to use UTF8 but want case-sensitive data should I use UTF8-bin? Thanks!

Upvotes: 1

Views: 3830

Answers (1)

santiagobasulto
santiagobasulto

Reputation: 11686

Try utf8_bin.

A hint. When the colation ends with CS it means "Case Sensitive". For example: utf8_croatian_cs is Case Sensitive.

Upvotes: 8

Related Questions