我有一些来自本地主机的二进制日志文件,但是当我写
mysqlbinlog mysql-bin.000001 > statament.sql
或者它只是返回乱码的文本文件,即
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
# at 4
#120919 11:08:54 server id 1 end_log_pos 106 Start: binlog v 4, server v 5.1.33- community-log created 120919 11:08:54 at startup
ROLLBACK/*!*/;
BINLOG '
potZUA8BAAAAZgAAAGoAAAAAAAQANS4xLjMzLWNvbW11bml0eS1sb2cAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAACmi1lQEzgNAAgAEgAEBAQEEgAAUwAEGggAAAAICAgC
'/*!*/;
# at 106
#120919 11:26:07 server id 1 end_log_pos 125 Stop
DELIMITER ;
# End of log file
ROLLBACK /* added by mysqlbinlog */;
/*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/;
所以这主要是困扰......我没有设置奴隶......知道我做错了什么吗?
谢谢 !