You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [LinuxServer.io](https://linuxserver.io) team brings you another container release featuring easy user mapping and community support. Find us for support at:
*[IRC](https://www.linuxserver.io/irc/) on freenode at `#linuxserver.io`
6
-
*[Podcast](https://www.linuxserver.io/podcast/) covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
The [LinuxServer.io][linuxserverurl] team brings you another container release featuring easy user mapping and community support. Find us for support at:
9
+
*[forum.linuxserver.io][forumurl]
10
+
*[IRC][ircurl] on freenode at `#linuxserver.io`
11
+
*[Podcast][podcasturl] covers everything to do with getting the most from your Linux Server plus a focus on all things Docker and containerisation!
7
12
8
13
# linuxserver/mariadb
14
+
[](https://microbadger.com/images/linuxserver/mariadb"Get your own version badge on microbadger.com")[](http://microbadger.com/images/linuxserver/mariadb"Get your own image badge on microbadger.com")[][hub][][hub][](http://jenkins.linuxserver.io:8080/job/Dockers/job/LinuxServer.io/job/linuxserver-mariadb/)
*`-e MYSQL_ROOT_PASSWORD` - set this to root password for installation (minimum 4 characters)
30
41
*`-e PGID` for GroupID - see below for explanation
31
42
*`-e PUID` for UserID - see below for explanation
43
+
*`-e TZ` - for timezone information *eg Europe/London, etc*
44
+
45
+
It is based on ubuntu xenial with s6 overlay, for shell access whilst the container is running do `docker exec -it mariadb /bin/bash`.
32
46
33
47
### User / Group Identifiers
34
48
@@ -43,25 +57,25 @@ In this instance `PUID=1001` and `PGID=1001`. To find yours use `id user` as bel
43
57
44
58
## Setting up the application
45
59
46
-
If you didn't set a password during installation, (see logs for warning) use mysqladmin -u root password <PASSWORD> to set one at the docker prompt... NOTE changing the MYSQL_ROOT_PASSWORD variable after the container has set up the initial databases has no effect. It is also advisable to edit the run command or template/webui after setup and remove reference to this variable.
47
-
48
-
Find custom.cnf in /config for config changes (restart container for them to take effect)
49
-
, the databases in /config/databases and the log in /config/log/myqsl
60
+
If you didn't set a password during installation, (see logs for warning) use mysqladmin -u root password <PASSWORD> to set one at the docker prompt...
50
61
51
-
The container also has mysqltuner included which can either be run from within the container by exec'ing in or externally by issuing `docker exec -it mariadb mysqltuner`. It will prompt for credentials if you have set a password for root user.
62
+
NOTE changing the MYSQL_ROOT_PASSWORD variable after the container has set up the initial databases has no effect, use the mysqladmin tool to change your mariadb password.
52
63
64
+
Unraid users, it is advisable to edit the template/webui after setup and remove reference to this variable.
53
65
66
+
Find custom.cnf in /config for config changes (restart container for them to take effect)
67
+
, the databases in /config/databases and the log in /config/log/myqsl
54
68
55
-
## Logs and Shell
69
+
## Info
56
70
57
71
* Shell access whilst the container is running: `docker exec -it mariadb /bin/bash`
58
72
* To monitor the logs of the container in realtime: `docker logs -f mariadb`
59
-
60
-
73
+
* container version number `docker inspect -f '{{ index .Config.Labels "build_version" }}' mariadb`
74
+
* image version number `docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/mariadb`
61
75
62
76
## Versions
63
-
+**09.03.2016:**Update to mariadb 10.1. Change to use custom.cnf over my.cnf in /config. Restructured init files to change config options on startup, rather than in the dockerfile.
64
-
+**26.01.2016:**Change user of mysqld_safe script to abc, better unclean shutdown handling on restart.
65
-
+**23.12.2015:**Remove autoupdating, between some version updates the container breaks
66
-
+**12.08.2015:**Initial Release.
67
-
77
+
+**11.10.16:**Rebase to ubuntu xenial, add version labelling.
78
+
+**09.03.16:**Update to mariadb 10.1. Change to use custom.cnf over my.cnf in /config. Restructured init files to change config options on startup, rather than in the dockerfile.
79
+
+**26.01.16:**Change user of mysqld_safe script to abc, better unclean shutdown handling on restart.
80
+
+**23.12.15:**Remove autoupdating, between some version updates the container breaks
0 commit comments