Issue #127 resolved
Anonymous created an issue

Instead of enclosing the variables MYSQL_USER and MYSQL_PASSWORD in single quotes, they must not be enclosed by quotes at all or the connection to the database will fail with this error:

ERROR 1045 (28000): Access denied for user 'iredadmin'@'localhost' (using password: YES)

Code before: if [[ -n ${MYSQL_USER} ]]; then if [[ -n ${MYSQL_PASSWD} ]]; then export CMD_MYSQL_ROOT="${CMD_MYSQL} -u'${MYSQL_USER}' -p'${MYSQL_PASSWD}'" else export CMD_MYSQL_ROOT="${CMD_MYSQL} --defaults-file=${MYSQL_DOT_MY_CNF} -u'${MYSQL_USER}'" fi fi

Instead it should read:

if [[ -n ${MYSQL_USER} ]]; then if [[ -n ${MYSQL_PASSWD} ]]; then export CMD_MYSQL_ROOT="${CMD_MYSQL} -u${MYSQL_USER} -p${MYSQL_PASSWD}" else export CMD_MYSQL_ROOT="${CMD_MYSQL} --defaults-file=${MYSQL_DOT_MY_CNF} -u${MYSQL_USER}" fi fi

Comments (1)

  1. Log in to comment