Skip to content

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

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