dbexport

command module
v0.0.0-...-53b6070 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

README

dbexport

  • Export mysql data to CSV or SQL file.

Usage

  • Usage : dbexport [SERVER1|SERVER2] DBName "sql query" outfilename
  • Example : dbexport SERVER1 defaultdb "select * from tbl_test;" outfilename
  • Example : dbexport -v SERVER1 defaultdb "select * from tbl_test;" outfilename
  • Example : dbexport -sql SERVER1 defaultdb "select * from tbl_test;" outfilename
  • Example : dbexport -sql -bulk SERVER1 defaultdb "select * from tbl_test;" outfilename
  • Example : dbexport -debug SERVER1 defaultdb "select * from tbl_test;" outfilename

Config file : dbexport.yml

  • TargetDBs:
    • SERVER1:
      • username: USERNAME
      • password: PASSWORD
      • hostname: HOSTNAME
      • port: 3306
    • SERVER2:
      • username: USERNAME2
      • password: PASSWORD2
      • hostname: HOSTNAME2
      • port: 3306

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL