TT#93200 testrunner: update instructions for mysql configuration

File /etc/ngcp-config/templates/etc/mysql/my.cnf.tt2 no longer exists
as such nowadays. Also it's configuration option bind-address and no
longer skip_networking.

FTR, our template file ships with:

| bind-address                      = [% database.local.dbhost %]

So another option might be to adjust database.local.dbhost
configuration inside /etc/ngcp-config/constants.yml. As
we discourage modifying constants.yml, let's mention the
bind-address workaround only instead.

Change-Id: I7cb71fa39386256e6b488aaa8fe676d48772372f
mr9.1.1
Michael Prokop 5 years ago
parent 7932e96f22
commit 5c2c93af16

@ -53,7 +53,7 @@ echo "Testing MySQL connection to ${MYSQL_SERVER}:${MYSQL_PORT} ..."
if ! mysql -u "${MYSQL_USER}" -h "${SERVER}" -P "${MYSQL_PORT}" -e 'select now()' >/dev/null ; then
echo "ERROR: Cannot connect to MySQL on ${MYSQL_SERVER}:${MYSQL_PORT} using user '${MYSQL_USER}', cannot continue!" >&2
echo "Hint:"
echo " [CE] remove 'skip_networking' from /etc/ngcp-config/templates/etc/mysql/my.cnf.tt2 && ngcpcfg apply 'Allow TCP for MySQL'"
echo " [CE] remove 'bind-address = ...' from /etc/ngcp-config/templates/etc/mysql/inc/my.mysqld1.cnf.tt2 && ngcpcfg apply 'Allow TCP for MySQL'"
echo " [CE/PRO] run: mysql -u root -e \"GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY PASSWORD ''; FLUSH PRIVILEGES;\""
exit 1
fi

Loading…
Cancel
Save