Author Topic: DATABASE ERROR: CONNECTION FAILED!  (Read 5151 times)

Offline cwkhor

  • Newbie
  • *
  • Posts: 1
DATABASE ERROR: CONNECTION FAILED!
« on: June 26, 2007, 06:05:33 AM »
My System is as below:-
PHP 5.2.1
MySQL 5.0
Windows 2003 Server IIS
hMail 4.4-B270
RoundCube RC1

I have tried various setting for main.inc.php and db.inc.php
And I have search both the forum in hMail and RoundCube

Checking on php.ini plugin, mysql default port, mysql string, mysql user access rights
All is confirmed no problem, but still can't find a solution for below error:-

DB Error in D:\WebServer\roundcube\program\include\rcube_db.inc (105): DB Error: extension not found
DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator.



Offline bmartin

  • Newbie
  • *
  • Posts: 1
Re: DATABASE ERROR: CONNECTION FAILED!
« Reply #1 on: July 20, 2007, 02:28:27 PM »
Was this resolved I am having the same issue?

Offline .Diver

  • Jr. Member
  • **
  • Posts: 11
Re: DATABASE ERROR: CONNECTION FAILED!
« Reply #2 on: July 21, 2007, 03:29:29 PM »
same here...I get the same error. Any help would be greatly appreciated !!!!

My steps were:
-modded files per wiki
-ran mysql.initial.sql via phpMyAdmin (successful)
-uploaded all files provided in roundcubemail-0.1-rc1.1.tar.gz (after being modded)
-went to http://www.mydomain.com/email/
and get the error:

DB Error in /home/arnol5/public_html/email/program/include/rcube_db.inc (105): DB Error: connect failed

Offline tesla

  • Newbie
  • *
  • Posts: 2
Re: DATABASE ERROR: CONNECTION FAILED!
« Reply #3 on: July 22, 2007, 06:20:38 PM »
I am getting the same error too. I am on a virtual dedicated host so have no idea what could be causing this. I spent over 3 hours just trying to debug things out from my end. Please if anybody has figured this out please let me know.

Offline .Diver

  • Jr. Member
  • **
  • Posts: 11
Re: DATABASE ERROR: CONNECTION FAILED!
« Reply #4 on: July 23, 2007, 12:09:05 AM »
I found the problem for me..it was the server field info I had my info wrong..I will show you below:

so when I first change the db.inc.php file and got the errors, I had this:
$rcmail_config['db_dsnw'] = 'mysql://arnol5_roundmail1:admingod@mydomain.com/arnol5_email'
then change it to this:
$rcmail_config['db_dsnw'] = 'mysql://arnol5_roundmail1:admingod@localhost/arnol5_email'

now it works like a champ for me...hope this will help someone else too!