Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Change your Lightsail database password

Focus mode
Change your Lightsail database password - Amazon Lightsail

When you create a new database in Amazon Lightsail, you can let Lightsail create a strong password for you or specify your own. You can view or change the current database password at any time in the Lightsail console.

To manage your database password
  1. Sign in to the Lightsail console.

  2. In the left navigation pane, choose Databases.

  3. Choose the name of the database for which you want to manage the password.

  4. On the Connect tab, under the User name and passwords section, choose Show to view the current database password.

    Show database password
  5. To change the database password, choose Change password.

    You can opt to have Lightsail create a strong password for you, or you can enter your own password into the text box. The password can include any printable ASCII character except "/", """, or "@". For MySQL databases, the password must contain from 8 to 41 characters. For PostgreSQL, the password must contain from 8 to 128 characters.

    Changing your database password
  6. Choose Save when you’re done.

    A database password change is applied immediately. If you entered your own password, the password is saved immediately. If Lightsail created the password for you, it is generated within a few seconds. Choose Show to view the new password.

Next steps

Here are a few guides to help you manage your database in Lightsail:

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.