PhpMyAdmin login problem

just now configure the php environment on mac. The apache,php,mysql is all set. There is a problem logging in after setting phpMyAdmin. In reality, you cannot log in to the MySQL server. The error message is
mysqli_real_connect (): Server sent charset (255) unknown to the client.. Please, report to the developers
mysqli_real_connect (): (HY000/2054): Server sent charset unknown to the client. Please, report to the developers
what is the cause?

May.27,2021

charset problem. Utf-8


is recommended.

modify server code

Edit the file vi / etc/mysql/mysql.conf.d/mysqld.cnf and add the following

[mysqld]
port=3306
character-set-server=utf8

[mysql]
default-character-set=utf8

[client]
default-character-set=utf8
Menu