Roundcube Community Forum

Release Support => Pending Issues => Topic started by: commin on March 19, 2008, 10:46:26 AM

Title: Unable to connect to the database.... :(
Post by: commin on March 19, 2008, 10:46:26 AM
I have a big - very big Problem. I`ve installed all - but i become the error: Unable to connect to the database!. Now i`ve checked the log-folder - but there ist maybe the next problem - there aro no files....

I make something like this the first time... - i dont know what`s wrong....

Title: Re: Unable to connect to the database.... :(
Post by: commin on March 20, 2008, 12:07:42 PM
the file "mysql.initial.sql" with no problems is executed... - i dont know why i became the error - unable to connect...
Title: Re: Unable to connect to the database.... :(
Post by: googlah on March 20, 2008, 03:15:52 PM
Double check your config/db.inc.php file. Look for this string:
$rcmail_config['db_dsnw'] = 'mysql://:@localhost/';

And change to your needs. Make sure your db.inc.php is renamed, and same goes for main.inc.php.

Hope this helps.
Title: Re: Unable to connect to the database.... :(
Post by: emphyrio on March 20, 2008, 03:29:08 PM
I'm getting the same error. My connection string is 100% right. It's the same as in my old Roundcube RC1 installation.

I copied the 0.1 stable files in a new directory. Did not run any .sql update script because I didn't think it was necessary. Configured the two configuration files and saved without .dist extension. Gave full write attributes to folders: temp and logs.

Anything I missed? The old Roundcube installation is working fine with the exact same database connection string.
Title: Re: Unable to connect to the database.... :(
Post by: emphyrio on March 20, 2008, 04:52:47 PM
Fixed it. @commin: did you use the /installer ? Just go to //www.yourdomain.com/roundcubemail-0.1/installer/ . It gave me the hints I needed to get it working.

For me, I had to change db.inc.php, this line:
$rcmail_config['db_backend'] = 'mdb2';

Had to change 'mdb2' to 'db', now it's working.

Title: Re: Unable to connect to the database.... :(
Post by: commin on March 21, 2008, 07:29:29 AM
big THX to all. It works :)
Title: Re: Unable to connect to the database.... :(
Post by: bryantwest on April 02, 2008, 06:23:30 PM
Worked for me to!
Title: Unable to connect to the database.... :(
Post by: roman on May 09, 2008, 09:47:37 AM
NOT for me.. :eek:

I installed the latest stable and had the same error. Changed mdb2 to "db" and now it just shows a blank screen. No errors, nothing...