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) »
  • drupal intallation DB_Error Object ...
Pages: [1]

Author Topic: drupal intallation DB_Error Object ...  (Read 1885 times)

antalj

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.8.
  • CMS version: drupal 7.21
  • MySQL version: 5.6.10
  • PHP version: 5.4.12
drupal intallation DB_Error Object ...
March 16, 2013, 01:47:31 pm
Hello!

While I try to install civcrm 4.2.8 on Drupal 7.10 I ve got the following error (prior to this at check phase everything is green).

Quote
DB_Error Object ([error_message_prefix]=> [mode] => 1 [level] =>  1024 => -1 [message] => DB Error: unknown error
=> CREATE TABLE `civicrm_option_value` ( `id` int unsigned NOT NULL AUTO_INCREMENT COMMENT 'Option ID',
`option_group_id` int unsigned NOT NULL COMMENT 'Group which this option belongs to.', `label` varchar(255) NOT NULL COMMENT
'Option string as displayed to users - e.g. the label in an HTML OPTION tag.', `value` varchar(512) NOT NULL COMMENT 'The actual
value stored (as a foreign key) in the data record. Functions which need lookup option_value.title should use
civicrm_option_value.option_group_id plus civicrm_option_value.value as the key.', `name` varchar(255) COMMENT 'Stores a fixed
(non-translated) name for this option value. Lookup functions should use the name as the key for the option value row.', `grouping`
 varchar(255) COMMENT 'Use to sort and/or set display properties for sub-set(s) of options within an option group. EXAMPLE: Use for
college_interest field, to differentiate partners from non-partners.', `filter` int unsigned COMMENT 'Bitwise logic can be used to create
 subsets of options within an option_group for different uses.', `is_default` tinyint DEFAULT 0 COMMENT 'Is this the default option for
the group?', `weight` int unsigned NOT NULL COMMENT 'Controls display sort order.', `description` text COMMENT 'Optional
description, , `is_optgroup` tinyint DEFAULT 0 COMMENT 'Is this row simply a display header? Expected usage is to render these as
OPTGROUP tags within a SELECT field list of options?', `is_reserved` tinyint DEFAULT 0 COMMENT 'Is this a predefined system object?',
 `is_active` tinyint DEFAULT 1 COMMENT 'Is this option active?', `component_id` int unsigned COMMENT 'Component that this option
value belongs/caters to.', `domain_id` int unsigned COMMENT 'Which Domain is this option value for', `visibility_id` int unsigned
DEFAULT NULL ,......................

...And a lot of other staff more

Any idea what could be here wrong ? :)

I would like to install it on a local mashine with a virtual host (I have other drupals with differenet databases)
Mysql 5.6.10
Apache 2.4

Thank you

ps: if I want to add this error message between code tags why does it says Im not allowed to use external links ? o_O

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: drupal intallation DB_Error Object ...
March 16, 2013, 01:50:41 pm
We would need to see the rest of the message. You can attach it as a .txt file or if it complains about external links, remove any "http://" in your error message.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: drupal intallation DB_Error Object ...
March 16, 2013, 05:34:28 pm

if i had to make a random guess, i suspect it is due to mysql 5.6.10, i dont think anyone has tested civicrm on that version (as yet)

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

antalj

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.8.
  • CMS version: drupal 7.21
  • MySQL version: 5.6.10
  • PHP version: 5.4.12
Re: drupal intallation DB_Error Object ...
March 17, 2013, 01:54:20 am
Thx for answer!

Please find the whole error message attached.
I've deleted the password, so that part is missing :)

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: drupal intallation DB_Error Object ...
March 17, 2013, 04:14:38 am
I see in there

Code: [Select]
=> DB Error: unknown error [userinfo]

...

=> Array ( [file]
=> C:\www\drupalcrm\sites\all\modules\civicrm\packages\DB.php [line]
=> 968 [function]
=> PEAR_Error [class]
=

...

=> C:\www\drupalcrm\sites\all\modules\civicrm\packages\PEAR.php [line]
=> 564 [function]
=> DB_Error [class]
=> DB_Error [object]
=> DB_Error Object *RECURSION* [type]
=> -> [args]

...

DB Error: unknown error

Unfortunately this is not clear at all. Lobo's idea is valid--it could be your MySQL version. It could also be a Pear issue maybe.

I can't say definitely however what the issue is. :(
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

antalj

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.2.8.
  • CMS version: drupal 7.21
  • MySQL version: 5.6.10
  • PHP version: 5.4.12
Re: drupal intallation DB_Error Object ...
March 17, 2013, 07:33:58 am
Okay thx

Then I try to downgrade mysql but which version shall I use for correct functions?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: drupal intallation DB_Error Object ...
March 17, 2013, 09:06:49 am
MySQL 5.5.27 definitely works.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Rar9

  • I’m new here
  • *
  • Posts: 23
  • Karma: 0
    • Asset-Trade
  • CiviCRM version: 4.15
  • CMS version: Drupal 7.15
  • MySQL version: 5.1.63-0ubuntu0.10.04.1
  • PHP version: 5.3.10-1ubuntu2ppa7~lucid
Re: drupal intallation DB_Error Object ...
March 25, 2013, 11:45:09 am
Hello,
I've got the same error DB_Error Object ... for a fresh install of CivCrm 4.28
Drupal 7.21
PHP 5.3.21
Mysql 5.5.30-1~dotdeb.0-log


I´ve now tried to install the 4.3 beta 4 and now I get an error for the new CiviCrm Database.
Can I create triggers in the database   Could not create a trigger.

what could be the problem? ???
« Last Edit: March 25, 2013, 12:44:33 pm by Rar9 »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • drupal intallation DB_Error Object ...

This forum was archived on 2017-11-26.