After following @Peter Venderberghe's answer to configure RDS, I still can not let it store Chinese characters correctly.
Finally, I used mysql command line to connect to RDS (you can use mysql workbench or other client tool you like)
mysql -u USERNAME -pPASSWORD -h HOSTNAMEORIP DATABASENAME
1). remember to add your current ip to security group inbound of RDS before connecting to RDS
2). you can get related information(security groups,
USERNAME...etc) on RDS console besides
PASSWORD should be the one you created for the instance.
HOSTNAMEORIP is "Endpoint"(without the port) on the console.
3). there is no space between -p and PASSWORD. it's exactly
After connecting to mysql with the tool you are comfortable with, you need to give it some commands:
# set character set and collation for databasemysql> alter database DATABASENAME CHARACTER SET utf8 COLLATE utf8_unicode_ci;--------# set character set and collation for new records in a tablemysql> ALTER TABLE TABLENAME CHARACTER SET utf8 COLLATE utf8_unicode_ci;# set character set and collation for existing records in a tablemysql> ALTER TABLE TABLENAME CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
you may want to write a script to do this task if you have many tables. However, it's not in the scope of this answer.
After configuring as above, you should be able to rock with Chinese characters!