xelabs / go-mydumper

A multi-threaded MySQL backup and restore tool, faster than mysqldump
GNU General Public License v3.0
346 stars 100 forks source link

[feature] Support for windows, Support for config file #16

Closed xqdd closed 4 years ago

xqdd commented 5 years ago

Config file example(yml format):

db-dump-out:
  host: xxx
  port: xxx
  user: xxx
  password: xxx
  db-name: xxx
  table-name: xxx

db-load-in:
  host: xxx
  port: xxx
  user: xxx
  password: xxx
  db-name: xxx
  table-name: xxx

Windows' Problem

xlog problem

F:\code\go\src\github.com\xelabs\go-mydumper\src\mystreamer>go install
# github.com/xelabs/go-mysqlstack/xlog
..\..\..\go-mysqlstack\xlog\xlog.go:66:12: undefined: syslog.New
..\..\..\go-mysqlstack\xlog\xlog.go:66:23: undefined: syslog.LOG_DEBUG
BohuTANG commented 5 years ago

ACK.

BohuTANG commented 5 years ago

Fixed https://github.com/xelabs/go-mysqlstack/commit/043dca7ff5a3e18886ec29c5de8fbd7141c681f3