1

Topic: error in roundcube DATABASE ERROR: CONNECTION FAILED!

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

Installed iRedmail on a fresh Amazon EC2 instance.
Roundcube works when I enter the public DNS address noted in Amazon for the instance. e.g. ec2.xyz.xyz.xyz...com/mail
Though, when enter the hostname, roundcube page says DATABASE ERROR: CONNECTION FAILED!
All TCP ports in the Amazon security group are left open just in case.
It seems like a grant access issue.
Any ideas?

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

2

Re: error in roundcube DATABASE ERROR: CONNECTION FAILED!

iRedMail grants SQL user on 'localhost' by default, maybe you want to grant for other host?

3

Re: error in roundcube DATABASE ERROR: CONNECTION FAILED!

what is the SQL username that it uses to connect with?

4

Re: error in roundcube DATABASE ERROR: CONNECTION FAILED!

Check Roundcube config file to figure it out: /usr/share/apache2/roundcubemail/config/db.inc.php.