Help Center > > FAQs> Database Connection> How Do I Set the Encoding Format of the MySQL 8.0 Character Set?

How Do I Set the Encoding Format of the MySQL 8.0 Character Set?

Updated at: Jun 09, 2021 GMT+08:00

Solution

  1. Set character_set_server to utf8 and collation_server to utf8_general_ci.
  2. If you use a client of PHP 7.1.x, change the PHP version because it will fail to connect to MySQL 8.0 DB instances with the utf8mb4 character set.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel