'Why is table CHARSET set to utf8mb4 and COLLATION to utf8mb4_unicode_520_ci
I've recently noticed that, when ever I start a new WordPress project, my tables' collation automatically changes from utf8_unicode_ci (which I select when I create a new DB from phpMyAdmin) to utf8mb4_unicode_520_ci.
Also, I've noticed in phpMyAdmin under “General Settings” that server connection Collation defaults to utf8mb4_unicode_520_ci.
I'm running MySQL Server 5.7.17 and phpMyAdmin 4.6.6 on Ubuntu 17.04.
My questions are following:
- Why is this happening?
- If possible, how do I prevent this? Because of
utf8mb4I've experienced problems when migrating WP sites to an older MySQL server which does not support it. - Is point 2. advisable? Are there any benefits in using charset
utf8mb4overutf8, and collationutf8mb4_unicode_520_cioverutf8_unicode_ci?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
