We are using software install, and automating installation with the silent install process. We are in the process of enabling a MySQL password reuse history. When we run the silent install it fails with this message:
Could not create database. An exception occurred: Cannot use these credentials for 'user_id@%' because they contradict the password history policy
we randomly generate a new password for each run, and have verified that the passwords do not match.
We are trying to understand what sql calls are happening for the user creation during silent install, and how it may be violating the password history policy.
ssg 11.x
MySql ALTER USER IF EXISTS command creates a row in the password_history with the user id and password in the ALTER USER IF EXISTS sql statement.
So if global variable password_hsitory not equals 0, the next CREATE USER IF NOT EXIST or CREATE USER sql statement with the same password will cause the error:
"Contradict the password history policy".
Set password_history to 0 before run
ALTER USER IF EXISTS and CREATE USER or CREATE USER IF NOT EXIST sql statements.
set password_history to the value as before.
or use the sql statement with password_history 0 clause:
CREATE USER IF NOT EXISTS 'xyz'@'%' IDENTIFIED BY '1234' password history 0 ;