Roundcube Community Forum

 

Unable to connect to the database.... :(

Started by commin, March 19, 2008, 10:46:26 AM

Previous topic - Next topic

commin

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....


commin

the file "mysql.initial.sql" with no problems is executed... - i dont know why i became the error - unable to connect...

googlah

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.

emphyrio

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.

emphyrio

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.


commin



roman

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...