From b9e319d47f71e958d6a58c2498abd19fbdfda4a8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 27 Jul 2015 14:12:00 +1200 Subject: Move database option to [mysql] section This avoids "unknown option" errors if the files are re-used as e.g. mysqldump(1) credential files. --- bash/bashrc.d/mysql.bash | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3