kevinbin / mysqldba Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
[root@mysql data]# mysqlbinlog -v --base64-output=DECODE-ROWS mysql-bin.000008 | mysqldba rbr2sbr
rbr2sbr called
/!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1/;
/!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0/;
DELIMITER /!/;
...........(忽略)
#180914 16:21:07 server id 3 end_log_pos 3750 CRC32 0x2b72e221 Xid = 218
COMMIT/!/;
SET @@SESSION.GTID_NEXT= 'AUTOMATIC' /* added by mysqlbinlog / /!*/;
DELIMITER ;
/!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE/;
/!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0/;
panic: EOF
goroutine 1 [running]:
github.com/kevinbin/mysqldba/cmd.ifErrWithPanic(0x8bee00, 0xc42003c040)
/root/go/src/github.com/kevinbin/mysqldba/cmd/root.go:120 +0x4a
github.com/kevinbin/mysqldba/cmd.rbrToSbr()
/root/go/src/github.com/kevinbin/mysqldba/cmd/rbr2sbr.go:67 +0x268
github.com/kevinbin/mysqldba/cmd.glob..func3(0x8dde80, 0x900570, 0x0, 0x0)
/root/go/src/github.com/kevinbin/mysqldba/cmd/rbr2sbr.go:41 +0x6c
github.com/spf13/cobra.(*Command).execute(0x8dde80, 0x900570, 0x0, 0x0, 0x8dde80, 0x900570)
/root/go/src/github.com/spf13/cobra/command.go:766 +0x2c1
github.com/spf13/cobra.(*Command).ExecuteC(0x8de340, 0x1, 0x747ba4, 0x1)
/root/go/src/github.com/spf13/cobra/command.go:852 +0x334
github.com/spf13/cobra.(*Command).Execute(0x8de340, 0x0, 0x6a6eb2)
/root/go/src/github.com/spf13/cobra/command.go:800 +0x2b
github.com/kevinbin/mysqldba/cmd.Execute()
/root/go/src/github.com/kevinbin/mysqldba/cmd/root.go:68 +0x31
main.main()
/root/go/src/github.com/kevinbin/mysqldba/main.go:28 +0x20
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.