Created
August 22, 2014 18:53
-
-
Save jhoffmann/d9e3bd4954a1f85454cb to your computer and use it in GitHub Desktop.
~/.my.cnf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mydb() { /usr/bin/mysql --defaults-group-suffix=$@ ;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[client] | |
default-character-set=utf8 | |
host= | |
user= | |
password= | |
database= | |
[clientstage] | |
host= | |
user= | |
password= | |
database= | |
[clientdev] | |
host=localhost | |
user= | |
password= | |
database= | |
[clientmkt] | |
host=localhost | |
user= | |
password= | |
database= | |
[mysql] | |
no-auto-rehash | |
connect_timeout=2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Usage: | |
mydb [client] | |
i.e. mydb (uses default params from the top of .my.cnf) | |
mydb stage (uses the params from the [clientstage] block) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment