mariadb: convert init script to procd

- also adds mariadb user to run the server as
- tweaks the default configuration a bit

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
This commit is contained in:
Sebastian Kemper
2018-06-30 20:05:25 +02:00
parent a26540d61c
commit a4df7b1db3
4 changed files with 59 additions and 23 deletions
+8 -8
View File
@@ -1,10 +1,10 @@
[client]
port = 3306
socket = /var/run/mysqld.sock
socket = /var/run/mysqld/mysqld.sock
[mysqld]
user = root
socket = /var/run/mysqld.sock
user = mariadb
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
@@ -21,21 +21,21 @@ skip-external-locking
bind-address = 127.0.0.1
# Fine Tuning
key_buffer = 16M
key_buffer_size = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
thread_cache_size = 8
# Here you can see queries with especially long duration
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#long_query_time = 2
#log-queries-not-using-indexes
# The following can be used as easy to replay backup logs or for replication.
#server-id = 1
#log_bin = /var/log/mysql/mysql-bin.log
#log_bin = /var/log/mysql/mysql-bin.log
#expire_logs_days = 10
#max_binlog_size = 100M
#max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name