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 IP Missing issue on cPanel/WHM

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

Domain names are not showing in WHM

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

How to Start/Stop or Restart Apache server

Apache is the HTTP server that is freely available over the internet. It is a kind of software or...

How to install Attracta SEO Tools plugin

RequirementscPanel/WHM needs to be installed on your server. Step 1: SSH into your server and go...

How to Install CpCleaner in cPanel through SSH?

Installation Run the following shell commands as root via SSH: wget -O cpc-1.0.3.tar...