How to create a database with MySQL using UTF-8

You haven’t mentioned how you want to create it, because it would depend on the program you use to access your database.

But suppose you want to create it using SQL, either using the terminal or even using a programming language. It would be like this:

CREATE DATABASE your_database CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

See also  Free Course of Initiation to Web Development
Loading Facebook Comments ...
Loading Disqus Comments ...