Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Kangaroux opened this issue Apr 8, 2024 · 1 comment
Open

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

Kangaroux opened this issue Apr 8, 2024 · 1 comment

Comments

@Kangaroux
Copy link
Contributor

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

@superp00t
Copy link
Member

Gophercraft will be deprecating the use of go-xorm very soon, in favor of the phylactery database. However, Phylactery might support mysql connections in future editions, so leaving this open for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants