Tp3.2.3 database configuration & #039; DB_CHARSET & #039; & amp; gt; & #039; utf8mb4 & #039;, an error is returned. If you do not need tp, use the native SQL 'setnamesutf8mb4. What's wrong? please solve it! Thank you! Tp3.2.3 configure 'DB _ charset' => 'utf8mb4 'for the database. an error is returned. As follows:
SQLSTATE [HY000] [2019] Can't initialize character set utf8mb4 (path:/usr/share/mysql/charsets/) error location FILE: /data1/www/htdocs/733/ecampus/3/ThinkPHP/Library/Think/Db/Driver. class. php LINE: 109
If you do not need tp, use the native SQL 'set names utf8mb4' for execution.
What's wrong? please solve it! Thank you!
Reply content:
Tp3.2.3 configure 'DB _ charset' => 'utf8mb4 'for the database. an error is returned. As follows:
SQLSTATE [HY000] [2019] Can't initialize character set utf8mb4 (path:/usr/share/mysql/charsets/) error location FILE: /data1/www/htdocs/733/ecampus/3/ThinkPHP/Library/Think/Db/Driver. class. php LINE: 109
If you do not need tp, use the native SQL 'set names utf8mb4' for execution.
What's wrong? please solve it! Thank you!