Author Topic: Roundcube: database error: connection failed  (Read 22155 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Roundcube: database error: connection failed
« on: February 13, 2015, 06:05:48 PM »
Hello!
I'm new in CentOS Web Panel and i need your help.
cwp version 0.9.8
mysql version 5.1
php version 5.4(recommended)
CentOS 6.6 final x86_64

As it was mentioned, my Roundcube can't connect to the database.
I've add a new user account and would test it but when i want to check it, Roundcube occured an error

Regards,

Offline
*
Re: Roundcube: database error: connection failed
« Reply #1 on: February 19, 2015, 12:32:31 PM »
ssh root

 cd /usr/local/apache/htdocs/roundcube/config/

nano db.inc.php

$rcmail_config['db_dsnw'] = 'mysqli://roundcube:password@localhost/roundcube';

change

$rcmail_config['db_dsnw'] = 'mysql://roundcube:password@localhost/roundcube';



mysqli change mysql :)

Offline
*
Re: Roundcube: database error: connection failed
« Reply #2 on: March 11, 2015, 03:16:52 PM »
thanks man it's work
:D

Offline
*
Re: Roundcube: database error: connection failed
« Reply #3 on: March 23, 2015, 10:23:36 AM »
Hi
I'm a nubie also and I got the same error message but I'm not understanding the commands listed above.
can someone break it down a little lower in a step by step format please.I'm running centos 6

Offline
*
Re: Roundcube: database error: connection failed
« Reply #4 on: March 24, 2015, 06:50:22 PM »
this are not commands, you need to edit file and make replacement.
What kind of changes have you done that you have this errors ?
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: Roundcube: database error: connection failed
« Reply #5 on: February 22, 2018, 03:44:48 PM »
Hi
i have update my CWP and my webmail stopped working, saying
DATABASE ERROR: CONNECTION FAILED!
Unable to connect to the database!
Please contact your server-administrator.

it was accessible through https://www.domain.com/webmail but it is giving above error with this URL
Roundcube is acessible with IP:2030/roundcube but i want to access it with domain/webmail again
kindly help in that
MySQL version: 10.1.19-MariaDB
CWP version: 0.9.8.339
Apache version: Apache/2.2.31
Thanks
« Last Edit: February 22, 2018, 03:46:51 PM by musman »

Offline
*
Re: Roundcube: database error: connection failed
« Reply #6 on: February 23, 2018, 05:22:14 AM »
Resolved the issue by changing the roundcube pwd and updating in config.inc file