If you face an issue with database connection in roundcube, please follow the steps given below.

Note : If it is a connection error, you may simply reset the roundcube passwod using "WHM >>Change MySQL User Password" with the one in the file /usr/local/cpanel/base/3rdparty/roundcube/config/db.inc.php. No need to re-install roundcube using /usr/local/cpanel/bin/update-roundcube. Just do it only if the issue isn't fixed even after resetting the database password.

or you can try this one


1. You will get the username and password of the roundcube database from /usr/local/cpanel/base/3rdparty/roundcube/config/db.inc.php .

The file contains a line this:

$rcmail_config['db_dsnw'] = 'mysql://roundcube:1uqFc9hOhSkdalcY@IP/roundcube';

The portion in italics is database username and password.

2. Set the database password as in the file.

mysql> SET PASSWORD FOR roundcube@localhost = OLD_PASSWORD('1uqFc9hOhSkdalcY');

3. Update roundcube

/usr/local/cpanel/bin/update-roundcube --force