How to fix DB Connection Error of RoundCube

Issue :
Getting below error for RoundCube

DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server- administrator.

There are a few things to be checked while working with this problem.

The database is repaired if the entire table exists. To repair a DB follow this command

mysqlcheck -r roundcube

The RoundCube can be rebuilt with the command line if the database or tables is missing. The command used to rebuild RoundCube is:

FOR BACKING UP THE DATABASE USE THE FOLLOWING

mysqldump roundcube > roundcube.sql

FOR DROPPING THE DATABASE:
The command below has to run in MySQL prompt

DROP DATABASE roundcube;

FOR REBUILDING PURPOSE

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

TO RESTORE:

mysql roundcube < roundcube.sql

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix defaultwebpage.cgi on a webserver

Running the following commands solves the above problem:   /scripts/updateuserdomains...

How to fix IP Missing issue on cPanel/WHM

We are here to help you with solving the problem of Missing IP Server in list accounts. The...

Install Let's Encrypt SSL in cPanel/WHM

Let's Encrypt, a valid, open-source license that offers free SSL for your domains. The Let's...

Fix Email Issue on a server using the MSFE

To solve the problem of not sending/receiving email on a server using the MSFE / Mailscanner...

Domain names are not showing in WHM

We were unable to see any domains listed under WHM -> List Accounts. However, we can see the...