Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Duplicate
-
Affects Version/s: 4.6.11
-
Fix Version/s: None
-
Component/s: Drupal Integration Modules
-
Labels:
-
Documentation Required?:None
-
Funding Source:Needs Funding
Description
I installed with:
drush civicrm-install --dbname=civicrm_civicrm1 --dbpass=****** --dbuser=civicrm --destination=sites/all/modules --site_url=civicrm1.com2.com --tarfile=/var/www/civicrm1/htdocs/civicrm-4.6.11-drupal.tar.gz
Accessing Civicrm fails with:
Initialization Error Array ( [callback] => Array ( [0] => CRM_Core_Error [1] => simpleHandler ) [code] => -25 [message] => DB Error: extension not found [mode] => 16 [debug_info] => [DB Error: extension not found] [type] => DB_Error [user_info] => [DB Error: extension not found] [to_string] => [db_error: message="DB Error: extension not found" code=-25 mode=callback callback=CRM_Core_Error::simpleHandler prefix="" info=" [DB Error: extension not found]"] )
After some Googling and thinking for myself I discover that drush civicrm-install apparently is still writing deprecated mysql configuration:
if (!defined('CIVICRM_UF_DSN')) { define( 'CIVICRM_UF_DSN' , 'mysql://civicrm:******@localhost/civicrm_drupal1?new_link=true'); } if (!defined('CIVICRM_DSN')) { define( 'CIVICRM_DSN' , 'mysql://civicrm:******@localhost/civicrm_civicrm1?new_link=true'); }
My server does not support the deprecated mysql extension any longer. I would expect that drush install configures the more up-to-date mysqli. After manually changing to mysqli:// it started working.