Roundcube Error connecting data base

NethServer Version: 7.3.1611
Module: roundcube

Hi, yesterday I try the mail server with roundcube, but when I try to access to roundcube, the web page responde with Databse error: connection failed! Unable to connect to the databade.

Can any one lead me step by step to I can make this work? I’ll be really gratefull

Maybe the mysqld service failed to start. Can you check if it’s running?


Yes, it’s running. Even I creat manually the database 'cause it wasn’t exist. But, I don’t know how to configure to connect or what should I do

Is it a new installation or did this happened on an existing environment?

Try with:

mysql -e "drop database roundcubemail"
1 Like

It’s on a new Installation, all fresh

Ok, let me try it, then I’ll reply you again

Thank you to all of you. A few hours ago, I finally make it work. On the file of roundcube, I edit this line:

$config[‘db_dsnw’] = ‘mysql://“user”:“password”@localhost/roundcubemail’;

And it was able to connect to database. Cheers!

Note that file is templated and your changes may be lost after an update.
The logs might give some clues about what gone wrong with the installation.