From c360fb551b49985b20757cf6ed5461f0fe390352 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 7 Feb 2019 12:05:38 +0100 Subject: replicate-db: the options of mariadb were moved to /etc/mysql/my.cnf.d/server.cnf from /etc/mysql/my.cnf --- replicate-db | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'replicate-db') diff --git a/replicate-db b/replicate-db index a1327ec..bd42dc8 100755 --- a/replicate-db +++ b/replicate-db @@ -36,15 +36,10 @@ sudo pacman -S --noconfirm mariadb stunnel # set up mariadb sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql sudo sed -i ' - /myisam_sort_buffer_size/ a group_concat_max_len = 4096 - /^#server-id/ { - s/^#// - s/[0-9]\+$/'"$RANDOM"'/ - b - } - s/^server-id/#\0/ - /^#skip-networking$/ s/^#// -' '/etc/mysql/my.cnf' + /^\s*\[mysqld]\s*$/ a group_concat_max_len = 4096 \ +server-id = '"$RANDOM"' \ +skip-networking +' '/etc/mysql/my.cnf.d/server.cnf' sudo systemctl start mysqld sudo systemctl enable mysqld -- cgit v1.2.3-70-g09d2