Some of our users can’t connect to their Webmail: When they click on RoundCube , they get this:
DATABASE ERROR: CONNECTION FAILED! Unable to connect to the database! Please contact your server-administrator.
Most probably, its an issue with the databases associated with roundcube,
First step is to update Roundcube using the below command:
/usr/local/cpanel/bin/update-roundcube --force
If its still not working try updating it after removing its database.
mysql -e “drop database roundcube”;
/usr/local/cpanel/bin/update-roundcube --force
If its still not working try to remove it completely and update it
mysql -e “drop database roundcube”;
rm -rf /usr/local/cpanel/base/3rdparty/roundcube
/usr/local/cpanel/bin/update-roundcube –force
Once update completed, check the webmail.
You are done!