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

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>