1

Topic: Database error: connection failed

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

Hello,

I just installed iRedMail on a fresh ubuntu 12 machine, but I get the unable to connect to database error.
Can someone please help me?

----

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

2

Re: Database error: connection failed

Does this error message appear when you try to access Roundcube webmail? If yes, please check database username/password set in file /usr/share/apache2/roundcubemail/config/config.inc.php, make sure you can access SQL database with this credential with SQL command line tool.

Another solution is, re-install OS then install iRedMail.

3

Re: Database error: connection failed

ZhangHuangbin wrote:

Does this error message appear when you try to access Roundcube webmail? If yes, please check database username/password set in file /usr/share/apache2/roundcubemail/config/config.inc.php, make sure you can access SQL database with this credential with SQL command line tool.

Another solution is, re-install OS then install iRedMail.


I cannot find any line that lists the username and password for this

4

Re: Database error: connection failed

Is there any setting like below?

$config['db_dsnw'] = 

5

Re: Database error: connection failed

There is but i do not see any username/password

PunBB bbcode test

6

Re: Database error: connection failed

Format is:

mysqli://[SQL_USER]:[SQL_PASSWORD]@...

7

Re: Database error: connection failed

i fixed that and i still have this error, even after a re-install

8

Re: Database error: connection failed

Excuse me, what do you mean "fixed that"? and what's "re-install"? did you re-install OS and iRedMail?

9

Re: Database error: connection failed

I inserted the correct information, but it still doesnt work.
Then i reinstalled Ubuntu 12.04 and iRedMail again and i still get this error

10

Re: Database error: connection failed

Did you notice any error message during iRedMail installation?

11

Re: Database error: connection failed

no, no errors during the installation, now also tried to install on ubuntu 14, same error

12

Re: Database error: connection failed

this problem is now solved, but i have another now. I will make a new thread for that.

13

Re: Database error: connection failed

How did you solve it?

14

Re: Database error: connection failed

new installation, turns out the server i had already had a mysql server, and iredmail installed LDAP over the current mysql installation so it didnt work