Skip to content

Wizard DB URL fails without wrapping host name with tcp() #1

@Kangaroux

Description

@Kangaroux

I have a MariaDB server running in Docker Compose with hostname db. Trying to input gopher:gopher@db/gophercraft for the conn URL gives an error:

🧙🏿Please select a database backend
? choose a database backend mysql
🧙🏿You picked mysql as your database driver. Nice!
 Next, you must enter a database URL. Database urls for mysql Look like this:  user:password@/databaseName
? Enter a database URL. gopher:gopher@db/gophercraft
🧙🏿A fatal error has occured default addr for network 'db' unknown

When I wrap the hostname in tcp() as suggested here, it works. gopher:gopher@tcp(db)/gophercraft

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions