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) »
  • Does it matter if my Drupal DB uses MyISAM?
Pages: [1]

Author Topic: Does it matter if my Drupal DB uses MyISAM?  (Read 1709 times)

heartsutra

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
    • Citronica
Does it matter if my Drupal DB uses MyISAM?
January 16, 2009, 11:41:38 pm
Hi,

Apologies in advance for the newbie question...

I know CiviCRM requires InnoDB, and I have that working OK.  But it would be easier for me to run Drupal using MyISAM, since that's the default storage engine in my shared host's MySQL configuration.  Is it OK to use a MyISAM database for Drupal and an InnoDB database for CiviCRM, or do they both have to use InnoDB?

Thanks,
Andrea

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: Does it matter if my Drupal DB uses MyISAM?
January 17, 2009, 06:27:24 am

yes , having drupal on MyISAM and CiviCRM on InnoDB is fine and should work nicely

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

mrk

  • Guest
Re: Does it matter if my Drupal DB uses MyISAM?
January 23, 2009, 09:12:48 pm
Greetings folks.

I am new to this CiviCRM stuff (bet you never heard that before).  ::)

I installed 2.1 on Joomla 1.5 without a hitch.  --  Very Nice

My site(s) are being hosted on servers that use MyISAM as the default table engine.
I have tried running ALTER TABLE {tablenamehere} ENGINE=InnoDB; against the CiviCRM tables,
(one at a time mind you).   :'(    And get a success message when it completes.  Yet, when I
go back to look at the table structure, it still shows MyISAM as the table engine.   :-\

If I cannot get these tables converted, would this be a show stopper, or is this the most perferred
table engine for CiviCRM?

Thanks a BUNCH!

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: Does it matter if my Drupal DB uses MyISAM?
January 23, 2009, 10:00:19 pm

CiviCRM requires InnoDB as the table engine. I think the admin page will abort if this is not so (at at least give you a warning). You most likely will end up with an inconsistent DB if you ignore the errors / warning

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

Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: Does it matter if my Drupal DB uses MyISAM?
January 26, 2009, 12:14:45 am
Quote from: mrk on January 23, 2009, 09:12:48 pm
My site(s) are being hosted on servers that use MyISAM as the default table engine.
I have tried running ALTER TABLE {tablenamehere} ENGINE=InnoDB; against the CiviCRM tables,
(one at a time mind you).   :'(    And get a success message when it completes.  Yet, when I
go back to look at the table structure, it still shows MyISAM as the table engine.   :-\

Does it show MyISAM for the tables you’ve converted, or just as the default engine for the database?

(I’m pretty sure we do create our tables as InnoDB, so if it was supported by your MySQL install then the tables would be already InnoDB.) :|
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Drupal Installations (Moderator: Piotr Szotkowski) »
  • Does it matter if my Drupal DB uses MyISAM?

This forum was archived on 2017-11-26.