cPanel RoundCube DATABASE ERROR: CONNECTION FAILED

The problem is Roundcube is not able to connect to MySQL database.

 

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 deleting its database.

 mysql -e “drop database roundcube”;
/usr/local/cpanel/bin/update-roundcube --force

If the second solution is also 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