-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Error connecting to mysql database during installation #1362
Comments
After setting Just using host |
Could anyone please reopen this ? We want people to be able to set Gitea to still use unix sockets to connect to mysql. |
Reopening the issue on @strk's request. |
i try to run go-gitea through docker-compose, following the tutorial Installation with docker.
change to docker compose is running
|
@muhfaris you should map mysql port to 3306 |
@lunny thanks for reply |
If you're using So if you copy-pasta'd the config from the instructions, your database will be at:
See: https://docs.gitea.io/en-us/install-with-docker/#install |
I have installed this via docker and set my database to be When I run the install script I get the following error:
Edit: I had neglected to add my network to the database host. ignore this comment. |
I have just run into the very same issue after an installation from a binary. Docker is installed, but I would expect that installing it directly would not involve it in any way. |
I'm running into this issue as well using docker-compose. I was able to get something to happen by passing it its own IP address, but that time the page timed out while the database churned in the background. |
[x]
):Description
When trying to install gitea i am getting the following error
Database setting is not correct: dial tcp: missing port in address localhost
. I used hostlocalhost
with proper credentials.I also tried using host as
localhost:3306
which results in errorDatabase setting is not correct: dial tcp 127.0.0.1:3306: getsockopt: connection refused
The text was updated successfully, but these errors were encountered: