问题展示:
代码语言:javascript复制[root@localhost bin]# "/usr/local/mysql-8.0.11/bin/mysqlbinlog" "/usr/local/mysql-8.0.11/data/binlog.000025"
mysqlbinlog: [ERROR] unknown variable 'default-character-set=utf8'
解决方法: 加入个 –no-defaults 参数就好了。
代码语言:javascript复制[root@localhost bin]# "/usr/local/mysql-8.0.11/bin/mysqlbinlog" --no-defaults "/usr/local/mysql-8.0.11/data/binlog.000025"