Skip to content

Commit

Permalink
No need to set password on user, fails on mysql 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rfay committed Jan 21, 2020
1 parent 8302422 commit a14eceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ddevapp/ddevapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ func (app *DdevApp) ImportDB(imPath string, extPath string, progress bool, noDro
// Inside the container, the dir for imports will be at /mnt/ddev_config/<tmpdir_name>
insideContainerImportPath := path.Join("/mnt/ddev_config", filepath.Base(dbPath))

preImportSQL := fmt.Sprintf("CREATE DATABASE IF NOT EXISTS %s; GRANT ALL ON %s.* TO 'db'@'%%' IDENTIFIED BY 'db';", targetDB, targetDB)
preImportSQL := fmt.Sprintf("CREATE DATABASE IF NOT EXISTS %s; GRANT ALL ON %s.* TO 'db'@'%%';", targetDB, targetDB)
if !noDrop {
preImportSQL = fmt.Sprintf("DROP DATABASE IF EXISTS %s; ", targetDB) + preImportSQL
}
Expand Down

0 comments on commit a14eceb

Please sign in to comment.