Author Topic: Unable to connect to the database.... :(  (Read 4997 times)

Offline commin

  • Jr. Member
  • **
  • Posts: 25
Unable to connect to the database.... :(
« 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....


Offline commin

  • Jr. Member
  • **
  • Posts: 25
Re: Unable to connect to the database.... :(
« Reply #1 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...

Offline googlah

  • Newbie
  • *
  • Posts: 3
Re: Unable to connect to the database.... :(
« Reply #2 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.

Offline emphyrio

  • Newbie
  • *
  • Posts: 8
Re: Unable to connect to the database.... :(
« Reply #3 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.

Offline emphyrio

  • Newbie
  • *
  • Posts: 8
Re: Unable to connect to the database.... :(
« Reply #4 on: March 20, 2008, 04:52:47 PM »
Fixed it. @commin: did you use the /installer ? Just go to http://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.


Offline commin

  • Jr. Member
  • **
  • Posts: 25
Re: Unable to connect to the database.... :(
« Reply #5 on: March 21, 2008, 07:29:29 AM »
big THX to all. It works :)

Offline bryantwest

  • Newbie
  • *
  • Posts: 2
Re: Unable to connect to the database.... :(
« Reply #6 on: April 02, 2008, 06:23:30 PM »
Worked for me to!

Offline roman

  • Newbie
  • *
  • Posts: 1
Unable to connect to the database.... :(
« Reply #7 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...