在Docker中,使用MySQL命令行执行命令,会发现中文被删除,解决方案如下:

docker exec -it mysql env LANG=C.UTF-8 bash
Last modification:October 31, 2022
If you think my article is useful to you, please feel free to appreciate