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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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