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 »
  • Using CiviCRM »
  • Using CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • Reserve Respondents: Can't create temp table error
Pages: [1]

Author Topic: Reserve Respondents: Can't create temp table error  (Read 1843 times)

arielqgold

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 3.3.1, 3.3.5, 3.4.5
  • CMS version: Drupal 6.22
Reserve Respondents: Can't create temp table error
August 05, 2011, 03:07:44 am
I'm attempting to "Reserve Respondents" and get the following error. I tried to execute the CREATE TEMPORARY TABLE query as root mysql user and got the same error.

Using CiviEngage for the first time, so not sure if I'm posting in the right forum section, or does this go into installation? It seems to have installed fine, with the provided xml file importing successfully. Thank you for any help!


Code: [Select]
Database Error Code: Can't create table 'example.civicrm_survey_respondent_temp_d8ee8e429cf2f9d814ac6379d08f8281' (errno: 150), 1005
Additional Details:
Array
(
    [callback] => Array
        (
            [0] => CRM_Core_Error
            [1] => handle
        )

    [code] => -15
    [message] => DB Error: can not create
    [mode] => 16
    [debug_info] =>
     CREATE TEMPORARY TABLE civicrm_survey_respondent_temp_d8ee8e429cf2f9d814ac6379d08f8281 (
            id int unsigned NOT NULL AUTO_INCREMENT,
            survey_contact_id int unsigned NOT NULL, 
PRIMARY KEY ( id ),
 CONSTRAINT FK_civicrm_survey_respondent FOREIGN KEY (survey_contact_id) REFERENCES civicrm_contact(id) ON DELETE CASCADE ) [nativecode=1005 ** Can't create table 'example.civicrm_survey_respondent_temp_d8ee8e429cf2f9d814ac6379d08f8281' (errno: 150)]
    [type] => DB_Error
    [user_info] =>
     CREATE TEMPORARY TABLE civicrm_survey_respondent_temp_d8ee8e429cf2f9d814ac6379d08f8281 (
            id int unsigned NOT NULL AUTO_INCREMENT,
            survey_contact_id int unsigned NOT NULL, 
PRIMARY KEY ( id ),
 CONSTRAINT FK_civicrm_survey_respondent FOREIGN KEY (survey_contact_id) REFERENCES civicrm_contact(id) ON DELETE CASCADE ) [nativecode=1005 ** Can't create table 'example.civicrm_survey_respondent_temp_d8ee8e429cf2f9d814ac6379d08f8281' (errno: 150)]
    [to_string] => [db_error: message="DB Error: can not create" code=-15 mode=callback callback=CRM_Core_Error::handle prefix="" info="
     CREATE TEMPORARY TABLE civicrm_survey_respondent_temp_d8ee8e429cf2f9d814ac6379d08f8281 (
            id int unsigned NOT NULL AUTO_INCREMENT,
            survey_contact_id int unsigned NOT NULL, 
PRIMARY KEY ( id ),
 CONSTRAINT FK_civicrm_survey_respondent FOREIGN KEY (survey_contact_id) REFERENCES civicrm_contact(id) ON DELETE CASCADE ) [nativecode=1005 ** Can't create table 'example.civicrm_survey_respondent_temp_d8ee8e429cf2f9d814ac6379d08f8281' (errno: 150)]"]
)

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: Reserve Respondents: Can't create temp table error
August 05, 2011, 07:53:40 am

yes, your mysql user needs "create temp table" privileges. I'm pretty sure we check this during install. maybe the mysql permissions changed after install?

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

arielqgold

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 3.3.1, 3.3.5, 3.4.5
  • CMS version: Drupal 6.22
Re: Reserve Respondents: Can't create temp table error
August 05, 2011, 12:01:08 pm
I forgot to mention that the mysql user does have CREATE TEMPORARY TABLE privilege.

I created another survey and it worked okay at first, then I get sporadic errors. I think I'm just doing something I'm not supposed to do, and rather than giving doing error checking I'm getting this DB error?

Well, because I really just wanted to do a phone bank, so I'm actually reading the CiviEngage chapter and it seems to help me do what I want  :)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCampaign (Moderators: Kiran Jagtap, xavier) »
  • Reserve Respondents: Can't create temp table error

This forum was archived on 2017-11-26.