Skip to content

Commit 60d3d60

Browse files
committed
Add MYSQL_CONF env var to mariadb, same as mysql, allowing mariadb
plugin users to easily override things. Also, add a commented out 'port' line in each my.cnf, since this is the most likely change needed.
1 parent dc50eb5 commit 60d3d60

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

plugins/mariadb.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"MYSQL_HOME": "{{ .Virtenv }}/run",
88
"MYSQL_DATADIR": "{{ .Virtenv }}/data",
99
"MYSQL_UNIX_PORT": "{{ .Virtenv }}/run/mysql.sock",
10-
"MYSQL_PID_FILE": "{{ .Virtenv }}/run/mysql.pid"
10+
"MYSQL_PID_FILE": "{{ .Virtenv }}/run/mysql.pid",
11+
"MYSQL_CONF": "{{ .DevboxDir }}/my.cnf"
1112
},
1213
"create_files": {
1314
"{{ .Virtenv }}/run": "",

plugins/mariadb/my.cnf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# MySQL configuration file
22

3-
[mariadb]
3+
[mariadbd]
4+
# Change this port if 3360 is already used
5+
#port = 3360
46
log_error=mysql.log

plugins/mysql/my.cnf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@
22

33
# [mysqld]
44
# skip-log-bin
5+
# Change this port if 3360 is already used
6+
#port = 3360

0 commit comments

Comments
 (0)