aboutsummaryrefslogtreecommitdiff
path: root/mysql
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-26 23:29:07 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-26 23:30:40 +1200
commitbc204d546eacaf82ced744838cd5a06ff8bcdde0 (patch)
tree5ec2c0d44b7a292b08d783d4ae65242066da1499 /mysql
parent75c6240bc0bd6368cc8b470572062db360c07670 (diff)
downloaddotfiles-bc204d546eacaf82ced744838cd5a06ff8bcdde0.tar.gz
dotfiles-bc204d546eacaf82ced744838cd5a06ff8bcdde0.zip
Allow MYSQL_* my.cnf vars
Experimental
Diffstat (limited to 'mysql')
-rw-r--r--mysql/my.cnf6
-rw-r--r--mysql/my.cnf.mi511
2 files changed, 11 insertions, 6 deletions
diff --git a/mysql/my.cnf b/mysql/my.cnf
deleted file mode 100644
index 900cf1a9..00000000
--- a/mysql/my.cnf
+++ /dev/null
@@ -1,6 +0,0 @@
-[mysql]
-default-character-set=utf8
-no-auto-rehash
-prompt='(\u@\h:\d) mysql> '
-safe-updates
-skip-pager
diff --git a/mysql/my.cnf.mi5 b/mysql/my.cnf.mi5
new file mode 100644
index 00000000..810f5165
--- /dev/null
+++ b/mysql/my.cnf.mi5
@@ -0,0 +1,11 @@
+[mysql]
+default-character-set=utf8
+no-auto-rehash
+prompt='(\u@\h:\d) mysql> '
+safe-updates
+skip-pager
+
+[client]
+<% ifdef(`MYSQL_HOST', ``host='MYSQL_HOST', `dnl') %>
+<% ifdef(`MYSQL_USER', ``user='MYSQL_USER', `dnl') %>
+<% ifdef(`MYSQL_PASSWORD', ``password='MYSQL_PASSWORD', `dnl') %>