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

Flyway Documentation

User

Description

The user to use to connect to the database.

This can be omitted if the user is baked into the url (See Sql Server for an example).

Usage

Commandline

./flyway -user=myuser info

Configuration File

flyway.user=myuser

Environment Variable

FLYWAY_USER=myuser

API

Flyway.configure()
    .user("myuser")
    .load()

Gradle

flyway {
    user = 'myuser'
}

Maven

<configuration>
    <user>myuser</user>
</configuration>