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_DataObject Error: No database name / dsn found anywhere
Pages: [1]

Author Topic: DB_DataObject Error: No database name / dsn found anywhere  (Read 3207 times)

uyadav

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
DB_DataObject Error: No database name / dsn found anywhere
January 01, 2011, 10:32:56 pm
Hi,

Please assist. I am new to CiviCRM Module, trying to install with Drupal 6.20 and Mysql. I have created 2 databases, one for Drupal and one for Civicrm.

#1: Installation Process: Successful, it gave following messages under GREEN. Followed Link (URL: http://wiki.civicrm.org/confluence/display/CRMDOC33/Drupal+Installation+Guide)
----------------------------------------
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...

CiviCRM has been successfully installed
-------------------------------------------
The respective files like 'civicrm.settings.php' and other files were created successfully under sites/default directory.

===================================================
#2: Issue while activating Civicrm module
---------------------------------------
When I am trying to activate the CiviCRM modules thru Drupal, I am getting following error:

'DB_DataObject Error: No database name / dsn found anywhere '

and no action or screen can be performed after that.

If I rename the civicrm.settings.php file, the screen will showup but with the below errors:

"warning: 'sites/default/civicrm.settings.php' is not a valid include path in C:\Java_Development\Projects\civicrm\sites\all\modules\civicrm\drupal\civicrm.module on line 253.

Oops! - The CiviCRM settings file (civicrm.settings.php) was not found in the expected location (sites/default/civicrm.settings.php).

Please review the Drupal Installation Guide and the Trouble-shooting page for assistance. If you still need help installing, you can often find solutions to your issue by searching for the error message in the installation support section of the community forum."
==============================================

Please if somebody can assist with the above error. Also, I am not sure whether the CiviCRM modules have to be activated that is deployed under 'sites/all/modules/civicrm' after the CiviCRM installation is completed.

I have followed all the instructions under URL: http://wiki.civicrm.org/confluence/display/CRMDOC33/Drupal+Installation+Guide
Please let me know if additional details are needed.

Regards,
Umesh

uyadav

  • I’m new here
  • *
  • Posts: 2
  • Karma: 0
Re: DB_DataObject Error: No database name / dsn found anywhere
January 02, 2011, 08:28:19 am
I found the root cause of the issue. I am deploying the Drupal 6.19 and CiviCrm on GlassFish application server (v3.0) and Quercus PHP 4.11.

If I rollback the Quercus from 4.11 to 4.03..it is giving me stack overflow error, possibly doesn't support PHP 5.0.

With Quercus v4.11, it is showing me the error: "DB_DataObject Error: No database name / dsn found anywhere"

Please need assistance. Is there any way/process to deploy Drupal with different PHP engine on Glassfilsh?

Regards,
Umesh

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: DB_DataObject Error: No database name / dsn found anywhere
January 02, 2011, 08:34:44 am

You might want to try with a standard install of php 5.3.x (or php 5.2.x) and get it working first. I dont think we've heard of folks trying it with quercus, so dont know what version of php it supports etc

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • DB_DataObject Error: No database name / dsn found anywhere

This forum was archived on 2017-11-26.