Mysql create utf-8 database

Former practice:

CREATE DATABASE mydatabase CHARACTER SET utf8 COLLATE utf8_general_ci;

Current practice:

CREATE DATABASE mydb CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Leave a Reply