如果您尝试使用 PHP PDO 连接到最新版本的 mariadb (11.3.2),您将看到此错误,并且客户端将无法连接:
SQLSTATE[HY000] [2054] Server sent charset (0) unknown to the client. Please, report to the developers
php mariadb mysqlnd
mariadb ×1
mysqlnd ×1
php ×1