Store Emojis in Mysql Database

There was many time is tried to insert emiticons o emojis into Mysql data, a beginning that was hard, but after a Google search i found the following solution:

Set Database or tha table collation to utf8mb4_bin and character set to utf8mb4 this through this query:

ALTER TABLE Table_name CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin

Or if you are connection by Php code, you can use:

$database_connection->set_charset('utf8mb4');

So this is all, hope this result helpful for you, ciao