Database Collation and UTF8MB4

Database collation defines how characters are compared and hence the order of rows in query results.

  • UTF8: Uses 3 bytes for a character
  • UTF8MB4: Uses 4 bytes for a character, so allows more characters.

How to Decode Collation

utf8mb4_unicode_520_ci

  1. UTF8MB4
  2. Unicode 5.2.0 comparison for characters
  3. ci: Case Insensitive comparisons

Reference

Written with StackEdit.

BlinkBlank

Knowledge is the seed of wisdom.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.