1

Topic: MySQL connection problems after fresh install

==== Required information ====
- iRedMail version: 0.8.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Linux/BSD distribution name and version: CentOS 6.5
- Related log if you're reporting an issue:
====

Hi,

I have just installed iRedMail but it keeps giving me database connection errors, on RoundCube and iRedAdmin.

Where should I look for? There are no databases related to iRedMail on my system, but iRedMail was installed.

Thanks!

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: MySQL connection problems after fresh install

Is mysql server running?

Did you install iredmail on a fresh server?

What version of mysql-server are you running?

3

Re: MySQL connection problems after fresh install

if it's a new server, it's recommended to re-install server os then reinstall iRedMail again.

4

Re: MySQL connection problems after fresh install

Yes, I have same problem with iRedMail-0.8.6.
twice re install OS, on centos 6.5. result same.
How should I do ?

5 (edited by annonman 2014-01-23 20:45:28)

Re: MySQL connection problems after fresh install

@pathetic and @skorzen,

I use LDAP as a backend, but have installed with no issues on Centos 6.5 several times.

Please confirm you are installing on a FRESH server.

Is mysql server running?  (# service mysqld status)

What version of mysql-server are you running?  (# rpm -q mysql-server)

6

Re: MySQL connection problems after fresh install

@annonman,

Confirmed, I used fresh server from oven.
MySQL installed by iRedMail is mysql  Ver 14.14 Distrib 5.1.71

Thanks for reply

7

Re: MySQL connection problems after fresh install

I would try connecting from the command line using the login credentials to see if you can connect.

mysql -u [your_user] -p

you can use iredmail.tips to get the information, or look at your your config files for user / password combinations.

8

Re: MySQL connection problems after fresh install

skorzen wrote:

I have just installed iRedMail but it keeps giving me database connection errors, on RoundCube and iRedAdmin.

Was there any error message during iRedMail installation? (i'm sorry i asked this question too late, i guess you didn't save the terminal output at all. my fault.)

@annonman gave the right direction, please check MySQL username/passwords first. If all username/passwords are ok, then please update Postfix/Dovecot/Roundcube/Amavisd config files to use correct credentials.

9

Re: MySQL connection problems after fresh install

Hi All,

Just FYI,

Before I have installed twice in fresh server with not success, but in third times installed with success.
I don't know what the problem is, cause I did with same step.

Regards,

Pathic/Tony