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) »
  • Cannot execute INSERT INTO `civicrm_msg_template`
Pages: [1]

Author Topic: Cannot execute INSERT INTO `civicrm_msg_template`  (Read 1076 times)

seGAP

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0
  • PHP version: 5.2
Cannot execute INSERT INTO `civicrm_msg_template`
April 07, 2010, 02:42:36 pm
We're attempting a first time install of CiviCRM 3.1.3 under Drupal 6 (separate CiviCRM database), with PHP 5.2 and MySQL 5.0, but we're getting...

=====
Building database schema and setup files...

Cannot execute INSERT INTO `civicrm_msg_template`
[snipped data]
DB Error: syntax error
=====

notes:
a) Pre-installation check shows Green/OK.
b) PHPMyadmin shows other Tables appear to be ok and populated correctly.
c) Drupal shows the CiviCRM module as enabled, but with the following error, which we assume is due to the Installation not having completed: The CiviCRM settings file (civicrm.settings.php) was not found in the expected location (sites/default/civicrm.settings.php)
d) We've repeated the process a couple of times (just in case), but with the same results.

Any thoughts on what we need to do?

Thanks,
seGAP

Bryan

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Cannot execute INSERT INTO `civicrm_msg_template`
April 07, 2010, 09:07:48 pm
I'm wondering if the Create Table line might be missing from the sql - does the table exist?
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

seGAP

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.0
  • CMS version: Drupal 7
  • MySQL version: 5.0
  • PHP version: 5.2
Re: Cannot execute INSERT INTO `civicrm_msg_template`
April 07, 2010, 09:59:14 pm
Thanks Eileen,

I had overlooked your post, and asked on IRC... dlobo helped by pointing me to /sites/all/modules/civicrm/sql/civicrm.mysql & civicrm_data.mysql.

His suspicion was that I was running an incompatible version of MySQL, but as soon as I looked at civicrm_data.mql I could see that it was corruped/truncated. So I simply reloaded that file, and the Install ran ok just a few moments ago.

So many thanks to both you and dlobo for your help.

Regards,
seGAP
Bryan

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Cannot execute INSERT INTO `civicrm_msg_template`

This forum was archived on 2017-11-26.