Get the most out of Flyway v7 - Sign up for our webinar on the Redgate Hub ▶ Watch now

Password

Description

The password to use to connect to the database

This can be omitted if the password is baked into the url (See Sql Server for an example), or if password is provided through another means (such as aws secrets).

Usage

Commandline

./flyway -password=mysecretpassword info

Configuration File

flyway.password=mysecretpassword

Environment Variable

FLYWAY_PASSWORD=mysecretpassword

API

Flyway.configure()
    .password("mysecretpassword")
    .load()

Gradle

flyway {
    password = 'mysecretpassword'
}

Maven

<configuration>
    <password>mysecretpassword</password>
</configuration>