Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion root-common/usr/share/container-scripts/mysql/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,9 @@ EOSQL
if [ -v MYSQL_ROOT_PASSWORD ]; then
log_info "Setting password for MySQL root user ..."
if [ "$MYSQL_VERSION" \> "10.0" ] ; then
# use a password here, because otherwise a password policy can reject the creation of the root user
mysql $mysql_flags <<EOSQL
CREATE USER IF NOT EXISTS 'root'@'%';
CREATE USER IF NOT EXISTS 'root'@'%' IDENTIFIED BY '${MYSQL_ROOT_PASSWORD}';
EOSQL
fi
mysql $mysql_flags <<EOSQL
Expand Down