This guide will show you how to change passwords after the KOP container is built, for both OS and MySQL users.
Contents:
By default, there are two operating system users:
In case you need to change the password for any of these users, please follow these steps:
logout from the container and login to docker server
execute : docker commit <kop docker name> <kop docker image>
By default, there are two MySQL users:
In case you need to change the password for MySQL root, please follow these steps:
UPDATE user SET Password=PASSWORD('new_password') WHERE USER='root';
In case you need to change the password for MySQL kiuwan, please follow these steps:
UPDATE user SET Password=PASSWORD('new_password') WHERE USER='kiuwan'; ( user as defined by KIUWAN_MYSQL_USER property at settings.custom file)
FLUSH PRIVILEGES;
sed -i 's|password=old_password|password=new_password'|g' deployconfig/kiuwan/configuration/WEB-INF/classes/config/hibernate/csaas-hibernate.properties
sed -i 's|password=old_password|password=new_password'|g' release/installation/conf/db-connection.properties
sed -i 's|password=old_password|password=new_password'|g' deployconfig/kiuwan/configuration/WEB-INF/classes/config/application.properties.http.rollback
sed -i 's|^KIUWAN_MYSQL_PWD=.*|KIUWAN_MYSQL_PWD=new_password'|g' koptools/deployKiuwan.sh.http.rollback
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|