Help: Mysql ->Connection refused #967
-
Hello, i have some problems to connect my local mysql server to photoprism. I use the default docker-compose.yml and start the server with the follow command:
Both containers "photoprism" and "mariadb" starts an exit with code 0. Because the photoprism container gets an error to connect to the database. Thats the log:
Then i changed the docker-compose.yml config and set the databse server to localhost:3306 and set the user credentials. With this user credentials i can connect the databse called "photoprism" on my local mysql server. But after starts the photoprism container i get the same error. Some ideas? Thanks yor your help. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
You should take a look at the |
Beta Was this translation helpful? Give feedback.
-
Please show your full configuration (without passwords). |
Beta Was this translation helpful? Give feedback.
-
I'm not using docker-compose - but I ran into a similar problem recently. [edit] -- hmm.. I'm not sure this is related as I review the thread above. However, my suggestion here is to do some diagnosis by manually shelling into the containers and verifying that you can (or can't) access things. The general problem people run into is password mismatch. However this wasn't my problem. If I was to shell into the mariadb container
I then shelled into the photoprism container to check my access to the db from there
This also worked fine. However, when I specified the database
It failed. This caused me to scratch my head a bunch -- then I decided to check inside of my mariadb to see if the photoprism db existed -- it did not. I suspect - that there is some bug in the bootstrap, where the db is not being created? I haven't tried with a normal docker-compose deploy - again, I'm using just docker.. but you may have a similar problem. |
Beta Was this translation helpful? Give feedback.
-
Hey Guys, sound a little bit crazy, but after a restart of my ubuntu machine, photoprism container starts with mysql support and anything is fine. :) |
Beta Was this translation helpful? Give feedback.
Hey Guys,
sound a little bit crazy, but after a restart of my ubuntu machine, photoprism container starts with mysql support and anything is fine. :)