Want more control over your database deployments? – Find out how with Carlos Robles at Redgate Summit Register now

Flyway Documentation

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>