Skip to content

Commit

Permalink
Finally fix weird password issue for mysql
Browse files Browse the repository at this point in the history
  • Loading branch information
Andriiklymiuk committed Jul 23, 2024
1 parent 1c4bd25 commit b73b8f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/spf13/cobra"
)

var APP_VERSION = "1.6.10"
var APP_VERSION = "1.6.11"

// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion templates/mysqlTemplate.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ id:
seed:
cat dump.sql | docker exec -i $(shell docker ps -aqf "name=mysql-{{.ServiceName}}") mysql -uroot -p{{.Password}} {{.DatabaseName}}
{{if .SeedFromDb.Host}}getDump:
mysqldump --host={{.SeedFromDb.Host}} --port={{.SeedFromDb.Port}} --user={{.SeedFromDb.User}} --password='$(p)' {{.SeedFromDb.DatabaseName}} > dump.sql
mysqldump --host={{.SeedFromDb.Host}} --port={{.SeedFromDb.Port}} --user={{.SeedFromDb.User}} --password=$(p) {{.SeedFromDb.DatabaseName}} > dump.sql
{{end}}getSelfDump:
mysqldump --host={{.Host}} --port={{.Port}} --user={{.User}} --password=$(p) {{.DatabaseName}} > dump.sql
remove:
Expand Down

0 comments on commit b73b8f5

Please sign in to comment.