Documentation

Changing the MySQL password for your database service also affects the other services that must connect to the database.

Warning

Creating a Backup¶

If you are changing the password for a production environment, then you must ensure you have an up-to-date backup so you can restore it after the update.

To create a backup for any environment, click Backups from the menu on the left:

Then, click Backup Now on the Backups page:

1. Navigate to your chosen environment.

2. Click Settings from the menu on the left:

3. In the Secrets section, click Edit… from the Actions menu beside the lcp-secret-database-password secret:

4. In the Value section, click Show beside the value to reveal the secret and enable editing.

5. Edit the value of the secret.

6. Scroll down and check all of the boxes acknowledging the effects of changing the value of the secret.

7. Click Publish secret.

Note

The services attempt to restart when you click Publish secret. However, the database service can only update its password upon image creation, so the service must be deleted and redeployed to update it.

9. From the Actions menu for the database service, click Delete Service.

10. Open a command prompt within your local clone of the repository.

11. Deploy the database service to your environment using the command-line interface:

cd database

lcp deploy

12. If you are not already logged in, enter y at the prompt and authenticate with your browser.

13. When prompted, enter the number corresponding to your environment:

#      Project             Status

? Type a number (#) or project name: 2


The database service starts up using the updated password. The liferay and backup services restart to reconnect to the database service with the correct password, as well.

14. If you prepared a backup, then navigate to your chosen environment’s Backups page, and restore the backup.

Your database service is now updated with a new password, and your other services are synchronized to connect to it properly.