CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • DB name, host, user & pwd OK but get "DB Error: connect failed" during install
Pages: [1]

Author Topic: DB name, host, user & pwd OK but get "DB Error: connect failed" during install  (Read 856 times)

grant

  • Guest
DB name, host, user & pwd OK but get "DB Error: connect failed" during install
June 29, 2010, 03:21:26 pm
Hi Folks,

I'm trying to install CiviCRM 3.2Beta2 on a clean installation of Drupal 6.17, running on a Debian system with MySQL 5.1.41 and PHP 5.3.2

Drupal has installed with no problems and fired up correctly.

I've stepped through the CiviCRM installation instructions and am running the installer.

It gets to the page where I key in the Drupal & CiviCRM DB info (DB, User, Pwd, Host) and it gives me all greens and says it has correct access with the right permissions, etc.

When I progress to the next step, I get the following information & error:

Quote
Installing CiviCRM...

I am now running through the installation steps (this should take a few minutes)

If you receive a fatal error, refresh this page to continue the installation


Building database schema and setup files...
Cannot open mysql://civicrmuser:civipwd@localhost/civicrm?new_link=true: DB Error: connect failed


It seems to be an issue with the PEAR code trying to process the DSN shown in the error above. I'm guessing that the previous "check & confirm" page didn't actually try to connect using the same method that the installation code does.

I've gone through the forums and Googled for people with similar problems but so far to no avail (they all seemed to be on hosted machines or did a reinstall or used TCP sockets). I put the question to the #civicrm IRC channel but the folks online weren't sure and suggested I go hunting through DB/mysql.php (which I'm about to do, time permitting)

So, any ideas what's causing this? Am I missing something very obvious?

Cheers,

Grant

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: DB name, host, user & pwd OK but get "DB Error: connect failed" during install
July 02, 2010, 07:40:19 am
ideas:

1. reinstall, upgrade or patch PEAR on your server. debian not standard CiviCRM setup
2. check to make sure that localhost is correct.  Maybe it is a different host like blah.securemysql.com or some other port number
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • DB name, host, user & pwd OK but get "DB Error: connect failed" during install

This forum was archived on 2017-11-26.