aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-07-27 14:12:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-07-27 14:12:00 +1200
commitb9e319d47f71e958d6a58c2498abd19fbdfda4a8 (patch)
treef18e8b9288462ad20b4f5c087fa7f262446b7e2f
parentStop highlighting syslog errors (diff)
downloaddotfiles-b9e319d47f71e958d6a58c2498abd19fbdfda4a8.tar.gz
dotfiles-b9e319d47f71e958d6a58c2498abd19fbdfda4a8.zip
Move database option to [mysql] section
This avoids "unknown option" errors if the files are re-used as e.g. mysqldump(1) credential files.
-rw-r--r--bash/bashrc.d/mysql.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash/bashrc.d/mysql.bash b/bash/bashrc.d/mysql.bash
index 973542b8..5ef6f67c 100644
--- a/bash/bashrc.d/mysql.bash
+++ b/bash/bashrc.d/mysql.bash
@@ -5,9 +5,11 @@
# [client]
# host=dbhost.example.com
# user=foo
-# database=bar
# password=SsJ2pICe226jM
#
+# [mysql]
+# database=bar
+#
mysql() {
local config
config=$HOME/.mysql/$1.cnf