Skip to content

Commit

Permalink
Merge pull request #30 from sue445/feature/fix_mysql_cli
Browse files Browse the repository at this point in the history
Fixed. doesn't work --host and --port at mysql
  • Loading branch information
sue445 authored Dec 7, 2019
2 parents dd276c9 + 0569528 commit 05a388e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ func main() {

sqlite3Database := ""
mysqlConfig := mysqlDriver.NewConfig()
mysqlHost := "localhost"
mysqlPort := 3306
mysqlHost := ""
mysqlPort := 0
app.Commands = []cli.Command{
{
Name: "sqlite3",
Expand Down Expand Up @@ -137,6 +137,7 @@ func main() {
),
Action: func(c *cli.Context) error {
mysqlConfig.Net = "tcp"
mysqlConfig.Addr = fmt.Sprintf("%s:%d", mysqlHost, mysqlPort)

adapter, close, err := mysql.NewAdapter(mysqlConfig)

Expand Down

0 comments on commit 05a388e

Please sign in to comment.