MySQLを5から8にバージョンアップする際に注意
utf8mb4
PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [2054] Server sent charset unknown to the client. Please, report to the developers'
PDO::__construct(): Server sent charset (255) unknown to the client. Please, report to the developers
MySQL charset (255) unknown to the client in MySQL and AWS RDS - DEV Community 2021
PHP5.6とMySQL8で「Server sent charset (255) unknown to the client.」ハマった…
参考
PHP :: Bug #74461 :: mysqlnd error on utf8mb4 charset used by MySQL 8.0
まとめ2
mysql はもう使われない古い拡張モジュール
mysqli は推奨されている拡張モジュール
pdo_mysql は他の DB に繋ぐことも考えた抽象化層である PDO を一個挟んだ拡張モジュール
PHP の mysqli, mysqlnd, pdo_mysql, PDO, libmysqlclient まとめ #PHP - Qiita 2019