By default, there are two MySQL users: - root
- kiuwan (defined by KIUWAN_MYSQL_USER property at settings.custom file)
In case you need to change the password for MySQL root, please follow these steps: - Log-in to KOP container with root user
- Connect to mysql shell by executing:
- mysql -uroot -p mysql ( password as defined by MYSQL_ROOT_PWD property at settings.custom file)
- Within mysql shell execute following commands
UPDATE user SET Password=PASSWORD('new_password') WHERE USER='root'; - FLUSH PRIVILEGES;
In case you need to change the password for MySQL kiuwan, please follow these steps: - Log-in to KOP container with root user
- Connect to mysql shell by executing:
- mysql -uroot -p mysql ( password as defined by MYSQL_ROOT_PWD property at settings.custom file)
- Within mysql shell execute following commands
- Change to directory of the container where KOP is installed (KIUWAN_VOL property at settings.custom file)
- Execute next commands (substituting old_password and new_password with your proper values) :
sed -i 's|password=old_password|password=new_password'|g' deployconfig/kiuwan/configuration/WEB-INF/classes/config/hibernate/csaas-hibernate.properties - sed -i 's|^KIUWAN_MYSQL_PWD=.*|KIUWAN_MYSQL_PWD=new_password'|g' koptools/deployKiuwan.sh
sed -i 's|password=old_password|password=new_password'|g' release/installation/conf/db-connection.properties - ONLY if you are using HTTPS :
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
- Change to koptools
- Execute next script :
|