Skip to content

Commit

Permalink
Fixed connection params
Browse files Browse the repository at this point in the history
  • Loading branch information
percona-csalguero committed Oct 10, 2018
1 parent 21f29ea commit 77ba5b4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -172,6 +172,9 @@ https://github.com/Percona-Lab/mysql_random_data_load/releases

## Version history

#### 0.1.10
- Fixed connection parameters for MySQL 5.7 (set driver's AllowNativePasswords: true)

#### 0.1.9
- Added support for bunary and varbinary columns
- By default, read connection params from ${HOME}/.my.cnf
Expand Down
13 changes: 7 additions & 6 deletions main.go
Expand Up @@ -116,12 +116,13 @@ func main() {
}

dsn := mysql.Config{
User: *opts.User,
Passwd: *opts.Pass,
Addr: address,
Net: net,
DBName: "",
ParseTime: true,
User: *opts.User,
Passwd: *opts.Pass,
Addr: address,
Net: net,
DBName: "",
ParseTime: true,
AllowNativePasswords: true,
}

db, err := sql.Open("mysql", dsn.FormatDSN())
Expand Down

0 comments on commit 77ba5b4

Please sign in to comment.