/go-mysql-client

pure Go MySQL client tool

Primary LanguageGoMIT LicenseMIT

go-mysql-client

pure Go mysql client

Feature

  • Single binary
  • Complete table name
  • Complete MySQL reserved words

Demo

Install

go get -u github.com/johejo/go-mysql-client/cmd/gomysql

Usage

execute SQL

gomysql -h [HOST] -P [PORT] -u [USER] -p [PASSWORD] [DATABASE] "[SQL]" 

prompt

gomysql -h [HOST] -P [PORT] -u [USER] -p [PASSWORD] [DATABASE] 

reading file

gomysql -h [HOST] -P [PORT] -u [USER] -p [PASSWORD] -f [SQL_FILE] [DATABASE]