Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS RDS MySQL with Unicode

I'm running MySQL on AWS RDS, does anyone know how to set the character set there to UTF-8?

like image 790
0x4ndy Avatar asked Mar 15 '26 06:03

0x4ndy


1 Answers

You can modify the database parameters through the AWS GUI/CLI or you can just create your tables with the required character set. (The Table character set does not need to match your database character set, nor match your column's character set)

E.g.

CREATE TABLE t1
(
    c1 CHAR(10) CHARACTER SET utf8mb4
) DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

Here I've used utf8mb4, which supports the full Unicode set, including Emojis, which MySQL's utf8 does not.

like image 51
Alastair McCormack Avatar answered Mar 17 '26 19:03

Alastair McCormack



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!