On Fri, Aug 3, 2018 at 3:38 AM Chun Chen <
chen...@pingcap.com> wrote:
>
> This error is because of the charset of the operating system. Use `echo $LANG` to see the charset. If it is UTF-8, you can connect to TiDB using `mysql --default-character-set=utf8`.
I have another theory, but the fix is the same:
I believe you may be using a MySQL 8.0 client where the default
charset is utf8mb4 (the charset id 255 is utf8mb4). See for example
this bug where the MySQL server changed the default on clients:
https://bugs.mysql.com/bug.php?id=85946
I believe from your description you may have the reverse?
--
Morgan Tocker
http://www.tocker.ca/