Page 1 of 1

RoundCube - DATABASE ERROR

Posted: Wed May 14, 2014 7:28 pm
by malevoefn
Dear team vestacp, I installed the control panel on my VPS and when I entered the webmail screen appeared with the following error: "DATABASE ERROR: CONNECTION FAILED".
Looking at the installation log I found a line that caught my attention: "vst-install-rhel.sh: line 677: /usr/share/doc/roundcubemail-*/SQL/mysql.initial.sql: No such file or directory".
I request the help of one of you to solve this problem.
By mail I send screenshots.
Thank you, regards.

Re: RoundCube - DATABASE ERROR

Posted: Wed May 14, 2014 8:27 pm
by imperio
You can create a new database for roundcube under root-mysql in the phpmyadmin
and than you should change database settings in db.inc.php

Code: Select all

$rcmail_config['db_dsnw'] = 'mysql://roundcube:new_passwd@localhost/roundcube';
also you should fetch a dump with roundcube tables in the official distributive
http://roundcube.net/download/
SQL/mysql.initial.sql

Re: RoundCube - DATABASE ERROR

Posted: Thu May 15, 2014 1:07 am
by malevoefn
I tell them that I could solve the problem. What I did was import the sql script it fetches mysql.initial.sql of https://github.com/roundcube/roundcubem ... master/SQL and generate the structure of tables in the database "roundcube" from phpMyAdmin logged in as root.
I saw that the installer script vesta failed because database "roundcube" and all configuration files are generated correctly, also the roundcube user generated. I think the problem is that the rpm package that you downloaded the installation did not install correctly mysql.initial.sql
It did not create a new database with a new user.
Thank you Imperio for your help on comment post.
Regards.

Re: RoundCube - DATABASE ERROR

Posted: Thu May 15, 2014 5:07 pm
by imperio
malevoefn,
Your problem is solved ?

Re: RoundCube - DATABASE ERROR

Posted: Thu May 15, 2014 6:19 pm
by malevoefn
Hi imperio, yes, I could solve it.

Re: RoundCube - DATABASE ERROR

Posted: Thu Sep 01, 2016 6:54 am
by skurudo
Main topic about Rouncude "DATABASE ERROR: CONNECTION FAILED!":
viewtopic.php?f=12&t=7065