How Do I Set the Encoding Format to Connect to the MySQL 8.0 Character Set?
Solution
- Set character_set_server to utf8 and collation_server to utf8_general_ci.
- If the client uses PHP 7.1.x, it will fail to connect to the utf8mb4 character set of MySQL 8.0. You are advised to use another PHP version.
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.