Skip to main content

MySQL / MariaDB: Creating new UTF database

So, as I never remember how to create a proper UTF8 database in MySQL/MariaDB, one that won't have any problem with unicode and emojis, I'll leave it here for the future:

CREATE DATABASE support CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;