From 5b177e7dcef5e513482053662f2565ad9c65f6c3 Mon Sep 17 00:00:00 2001 From: Andrew Mason Date: Mon, 6 Jul 2020 18:56:58 -0400 Subject: [PATCH] Set up aliases for primary/replica --- itest.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/itest.sh b/itest.sh index d9ee708..caa8dfb 100755 --- a/itest.sh +++ b/itest.sh @@ -46,17 +46,17 @@ dbdeployer deploy replication $MYSQL_VERSION \ --my-cnf-options binlog_format=ROW \ --sandbox-directory gh-ost-test -echo '#!/bin/bash' > /usr/local/bin/gh-ost-test-mysql-master -echo '/root/sandboxes/gh-ost-test/m "$@"' >> /usr/local/bin/gh-ost-test-mysql-master -chmod +x /usr/local/bin/gh-ost-test-mysql-master +echo '#!/bin/bash' > /usr/local/bin/gh-ost-test-mysql-primary +echo '/root/sandboxes/gh-ost-test/m "$@"' >> /usr/local/bin/gh-ost-test-mysql-primary +chmod +x /usr/local/bin/gh-ost-test-mysql-primary echo '#!/bin/bash' > /usr/local/bin/gh-ost-test-mysql-replica echo '/root/sandboxes/gh-ost-test/s1 "$@"' > /usr/local/bin/gh-ost-test-mysql-replica chmod +x /usr/local/bin/gh-ost-test-mysql-replica echo "Creating gh-ost user" -gh-ost-test-mysql-master -uroot -e"CREATE USER IF NOT EXISTS 'gh-ost'@'%' IDENTIFIED BY 'gh-ost'" -gh-ost-test-mysql-master -uroot -e"GRANT ALL PRIVILEGES ON *.* TO 'gh-ost'@'%'" +gh-ost-test-mysql-primary -uroot -e"CREATE USER IF NOT EXISTS 'gh-ost'@'%' IDENTIFIED BY 'gh-ost'" +gh-ost-test-mysql-primary -uroot -e"GRANT ALL PRIVILEGES ON *.* TO 'gh-ost'@'%'" echo "Reading database topology" master_host="127.0.0.1"