From 1ebb0dbae09cebf9a535ac057e3d2b20817d1cbb Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 22 Jun 2018 14:11:39 +0200 Subject: replicate-db: set random server-id --- replicate-db | 1 + 1 file changed, 1 insertion(+) diff --git a/replicate-db b/replicate-db index 9154d64..91706cb 100755 --- a/replicate-db +++ b/replicate-db @@ -39,6 +39,7 @@ 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/ -- cgit v1.2.3-70-g09d2