diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-07-27 14:12:00 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-07-27 14:12:00 +1200 |
commit | b9e319d47f71e958d6a58c2498abd19fbdfda4a8 (patch) | |
tree | f18e8b9288462ad20b4f5c087fa7f262446b7e2f | |
parent | Stop highlighting syslog errors (diff) | |
download | dotfiles-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.bash | 4 |
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 |