Divi WordPress Theme

cPanel Roundcube cannot connect with database

Topic: cPanel Roundcube cannot connect with database  (Read 1656 times)

Offline Chris

  • Junior Guru
  • **
  • Posts: 81
  • iTrader: +0/-0
    • View Profile
cPanel Roundcube cannot connect with database
« on: October 31, 2019, 11:29:23 AM »


I have cPanel server (root access). When I access any email account from Roundcube interface, I get database error:

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

Other webmail interfaces are working without any problem. I checked error log and found following:

warn [cpses_tool] Error while connecting to MySQL: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) at /usr/local/cpanel/Cpanel/DBAdmin.pm line 168. Cpanel::DBAdmin::_log_error_and_output_return(Cpanel::Mysql=HASH(0x2c4de68), “Error while connecting to MySQL: [_1]”, “Can’t connect to local MySQL server through socket ‘/tmp/mysq”…) called at /usr/local/cpanel/Cpanel/Mysql.pm line 168 Cpanel::Mysql::_get_dbh(Cpanel::Mysql=HASH(0x2c4de68), CPANEL_HIDDEN, CPANEL_HIDDEN, CPANEL_HIDDEN, 3306) called at /usr/local/cpanel/Cpanel/Mysql.pm line 112 Cpanel::Mysql::new(“Cpanel::Mysql”, HASH(0x2c4dee0)) called at bin/cpses_tool.pl line 175 bin::cpses_tool::action_CLEANUPSESSIONS(“bin::cpses_tool”, HASH(0x2c4dd48)) called at bin/cpses_tool.pl line 64 bin::cpses_tool::process_request(HASH(0x2c4dd48)) called at bin/cpses_tool.pl line 51 bin::cpses_tool::script(“bin::cpses_tool”) called at bin/cpses_tool.pl line 27 Error while connecting to MySQL: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) at /usr/local/cpanel/Cpanel/Mysql.pm line 168.

How can I fix this?
VPS Hosting - AccuWebHosting

Offline Kailash

  • Web Hosting Master
  • *****
  • Administrator
  • Posts: 660
  • iTrader: +153/-0
    • View Profile
Re: cPanel Roundcube cannot connect with database
« Reply #1 on: October 31, 2019, 11:30:26 AM »
Please check the following steps:

  • Make sure that mysql service is up and running.
  • Make sure that roundcube database is existed. You can check it from WHM -> phpMyAdmin. There should be a database named roundcube.
  • If roundcube database is existed, make sure that tables are not corupted. If they are corrupted, you may need to restore it from backup

Shopify Divi WordPress Theme
Tags:

Disable catch all / default email address in cPanel / WHM

Started by KailashBoard cPanel/WHM

Replies: 0
Views: 12933
Last post July 21, 2009, 10:27:35 AM
by Kailash
cPanel Training Seminar 2007

Started by KailashBoard Other Web Hosting Stuff

Replies: 0
Views: 3601
Last post April 29, 2007, 11:35:37 PM
by Kailash
cPanel and WHM version 11 released

Started by KailashBoard Other Web Hosting Stuff

Replies: 1
Views: 4203
Last post July 01, 2007, 02:05:54 PM
by Kailash
disable the catch all (default) email address in cPanel

Started by AnonymousBoard Email Management Software & Email Clients

Replies: 1
Views: 4929
Last post June 21, 2007, 08:31:34 AM
by Kailash
Redirect the sub-domain on the Linux server (cPanel/WHM)

Started by KailashBoard How Tos

Replies: 0
Views: 10770
Last post July 04, 2007, 11:01:49 AM
by Kailash