MySQL 8.0.16在尝试“mysqli连接”时返回错误

How could I set the charset to utf8? Either using terminal, or by editing a file.

Error: Server sent charset unknown to the client. Please, report to the developers