Skip to content

Commit

Permalink
helpers: typo T_T
Browse files Browse the repository at this point in the history
  • Loading branch information
alexAubin committed Dec 9, 2024
1 parent e992bd1 commit 75c81bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/helpers.v2.1.d/mysql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ ynh_mysql_db_shell() {
local default_character_set=""
if [[ -n "$database" ]]; then
default_character_set=$(mysql -B $database <<< 'show variables like "character_set_database";' | tail -n1 | cut -f2)
default_character_set="--default-character-set=$character_set"
default_character_set="--default-character-set=$default_character_set"
fi

mysql $character_set -B $database
Expand Down Expand Up @@ -93,7 +93,7 @@ ynh_mysql_dump_db() {
local default_character_set=""
if [[ -n "$database" ]]; then
default_character_set=$(mysql -B $database <<< 'show variables like "character_set_database";' | tail -n1 | cut -f2)
default_character_set="--default-character-set=$character_set"
default_character_set="--default-character-set=$default_character_set"
fi

mysqldump $default_character_set --single-transaction --skip-dump-date --routines "$database"
Expand Down

0 comments on commit 75c81bb

Please sign in to comment.