From b73b8f5686e29416dd17c861dae50816435e40bf Mon Sep 17 00:00:00 2001 From: Andrii Klymiuk Date: Tue, 23 Jul 2024 17:06:28 +0300 Subject: [PATCH] Finally fix weird password issue for mysql --- cmd/root.go | 2 +- templates/mysqlTemplate.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index 8ed1e1b..190c158 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -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{ diff --git a/templates/mysqlTemplate.go b/templates/mysqlTemplate.go index 76d73bf..83f6537 100644 --- a/templates/mysqlTemplate.go +++ b/templates/mysqlTemplate.go @@ -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: