Shadowghost/mailcow-mailman3-dockerized

Database Connection Issue

Closed this issue · 3 comments

After messing around with Apache2 modules, I got everything working, to be greeted by a database connection error.

screen shot 2018-07-13 at 9 30 50 pm

There's likely some dumb setting that I forgot about, but it seems like this should be handled by the docker setup.

Database settings for mailcow are handled by the following variables in your .env file:

# ------------------------------------
# Mailcow SQL database configuration
# ------------------------------------
MCDBNAME=mailcow
MCDBUSER=mailcow
# Please use long, random alphanumeric strings (A-Za-z0-9)
MCDBPASS=
MCDBROOT=

If you moved your installation from an existing mailcow install, keep in mind that the variable's name changed from DBPASS to MCDBPASS and from DBROOT to MCDBROOT.

You can also check the docker logs with docker-compose logs -f mysql-mailcow.

Btw: I don't have this problems on a fresh setup.

Problem was fixed by reinstalling docker and docker-compose—there were hanging images.

Nice to hear, that you've figured it out :)