dockerized icon indicating copy to clipboard operation
dockerized copied to clipboard

MariaDB Settings Ignored

Open sduensin opened this issue 2 years ago • 6 comments

The settings:

SQL_SERVER_ADDRESS=127.0.0.1
SQL_SERVER_PORT=3306

Seem to be ignored. Changing them does nothing. :-(

sduensin avatar Feb 19 '23 23:02 sduensin

  • Where do you save these 2 settings?
  • Did you restart container?

iredmail avatar Feb 20 '23 06:02 iredmail

I put them in the env file when I first created the container. New info: All the databases were created on the internal MariaDB instance and not my main database server. However, when going to access Roundcube I get an error about not being able to reach the database. So maybe the apps are using the settings but not the initial DB creation?

sduensin avatar Feb 20 '23 06:02 sduensin

However, when going to access Roundcube I get an error about not being able to reach the database.

Is Roundcube configured to use correct sql username and password in /opt/www/roundcubemail/config/config.inc.php?

iredmail avatar Feb 20 '23 06:02 iredmail

I assume so. I set the password for all the databases and told it not to randomize them.

sduensin avatar Feb 20 '23 07:02 sduensin

Please try to verify the SQL username / password with MySQL command line tool, make sure it's actually correct.

iredmail avatar Feb 20 '23 07:02 iredmail

I think the problem is that during startup it's ignoring the SQL_SERVER_* settings and later is honoring them. When I set it to my own server, the tables are still created in the MariaDB instance that is part of the iRedMail Docker image. I don't want to use that instance as all my other data is in another server.

sduensin avatar Feb 20 '23 22:02 sduensin