Error:mysqldump: Character set ‘gbk>’ is not a compiled character set and is not specified in the 'C:\Prog
一个空格引发了一个编码幻觉。
很多事后,我们在使用数据库的时候都是被编码所困惑,
又乱码了
WTF!!
问题描述:
在我使用mysqldump工具进行将远程数据库(www.yqun.xyz)中的Birth数据库备份到本地的过程中,出现了一下问题:
PS C:\Users\Administrator> mysqldump --column-statistics=0 --host=118.25.216.246 -uroot -p --databases Birth --default-c
haracter-set=gbk> ./Birth.sql
mysqldump: Character set 'gbk>' is not a compiled character set and is not specified in the 'C:\Program Files\MySQL\MySQL Server 8.0\share\charsets\Index.xml' file
参数说明:
--column-statistics=0, 8.0后的mysql版本和之后的区别引起的,只需要使用老版本的时候加上这个选项即可
--default-character