tests: Can't setup replication master without replication user

This commit is contained in:
Sameer Naik
2015-11-04 20:36:17 +05:30
parent 6f0e9bf569
commit 50a5090e3c
2 changed files with 14 additions and 0 deletions

View File

@@ -74,6 +74,10 @@ configure_replication() {
echo "GRANT REPLICATION SLAVE ON *.* TO '$MARIADB_REPLICATION_USER'@'%' IDENTIFIED BY '$MARIADB_REPLICATION_PASSWORD';" >> /tmp/init_mysql.sql
echo "FLUSH PRIVILEGES ;" >> /tmp/init_mysql.sql
else
echo "In order to setup a replication master you need to provide the MARIADB_REPLICATION_USER as well"
echo ""
exit -1
fi
;;
slave)