Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit b188963

Browse files
committed
Updated mysql initialization syntax
1 parent 05598a8 commit b188963

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/cms_mysql.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ systemctl enable mysqld
239239
systemctl start mysqld
240240
log "->Bootstrap Databases"
241241
mysql_pw=` cat /var/log/mysqld.log | grep root@localhost | gawk '{print $13}'`
242-
mysql -u root -p${mysql_pw} -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'S0m3p@ssw1234';"
243-
mysql -u root -p${mysql_pw} -e "FLUSH PRIVILEGES;"
242+
mysql -u root --connect-expired-password -p${mysql_pw} -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'S0m3p@ssw1234';"
243+
mysql -u root --connect-expired-password -p${mysql_pw} -e "FLUSH PRIVILEGES;"
244244
mysql_pw="S0m3p@ssw1234"
245245
mysql -u root -p${mysql_pw} -e "SET GLOBAL validate_password.policy=LOW;"
246246
mysql -u root -p${mysql_pw} -e "SET GLOBAL log_bin_trust_function_creators = 1;"

0 commit comments

Comments
 (0)