summaryrefslogtreecommitdiffstats
path: root/projectroot/etc/mariadb
diff options
context:
space:
mode:
authorBastian Stender <bst@pengutronix.de>2017-05-29 14:21:07 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-06-24 11:17:04 +0200
commit5e3dbbeede3cce78dc2a6cb8f2dd65fbee4ba059 (patch)
treee4f73c822ab698ab813d9e1872ae4c75434fde17 /projectroot/etc/mariadb
parent413eb50ff09da95e4bc715816fd4c851f7fb2861 (diff)
downloadptxdist-5e3dbbeede3cce78dc2a6cb8f2dd65fbee4ba059.tar.gz
ptxdist-5e3dbbeede3cce78dc2a6cb8f2dd65fbee4ba059.tar.xz
mariadb: new package
MariaDB is a MySQL fork. Therefore the MySQL rule was adapted to fit MariaDB. As MariaDB uses the same binary names as MySQL the packages conflict. Signed-off-by: Bastian Stender <bst@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'projectroot/etc/mariadb')
-rw-r--r--projectroot/etc/mariadb/my.cnf24
1 files changed, 24 insertions, 0 deletions
diff --git a/projectroot/etc/mariadb/my.cnf b/projectroot/etc/mariadb/my.cnf
new file mode 100644
index 000000000..da402c47a
--- /dev/null
+++ b/projectroot/etc/mariadb/my.cnf
@@ -0,0 +1,24 @@
+# MariaDB config file for small systems.
+#
+# This is for a system with little memory where MariaDB is only used
+# from time to time and it's important that the mysqld daemon doesn't
+# use much resources.
+
+[mysqld]
+# These are commonly set, remove the # and set as required.
+#port = .....
+#socket = .....
+
+skip-external-locking
+key_buffer_size = 16K
+max_allowed_packet = 1M
+table_open_cache = 4
+sort_buffer_size = 64K
+read_buffer_size = 256K
+read_rnd_buffer_size = 256K
+net_buffer_length = 2K
+thread_stack = 240K
+
+# we have a read-only filesystem with one persistent writeable area only
+# so point to this single writeable location
+datadir = /var/lib/mysql/data