New! – Spin up instant copies of your dev databases in the cloud for free Learn more

Flyway Documentation

Poll

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>