Loading...
 

About InnoDB

Support for InnoDB was introduced in Tiki 8.

InnoDB is transactional, and it provides several benefits over the default MyISAM engine.
  • Crash proof. The database will automatically recover errors upon restart
  • Row level locking, i.e. updates, inserts and deletes will no longer lock the whole file/table.

InnoDB also supports referential integrity by the use of foreign key and (multi-statment) transactions, but these features are currently not used by Tiki itself. However, customized Tiki versions can take advantage these features, e.g. if the tiki_pages table is linked from a custom table.

Installer scripts

Rules
  • No FKs are allowed in the tiki.sql script.
  • Fulltext index definitions are placed in the tiki_myisam.sql file. InnoDB specific definitions are placed in the tiki_innodb.sql file.
  • The word MyISAM must be used (only) in the engine specification, and it is not allowed in attribute names or other definitions.

The Tiki installer translates the engine type, based on the selected database in the installer GUI.

After the main install script (tiki.sql), the installer will run tiki_myisam.sql or tiki_innodb.sql for the respective installation. tiki_myisam.sql installs the fulltext indexes. tiki_innodb.sql is currently empty, but added for completeness.

Installing InnoDB

When installating the Tiki database, the user can choose to install MyISAM (default) or InnoDB. Once the choice is made, Tiki will remember the selection.

There is a migration procedure from MyISAM to InnoDB.

Migrating existing databases to InnoDB

Migration steps

  1. Make sure InnoDB is integrated in the standard/SVN Tiki release. Otherwise you may be unable to do any upgrades later.
  2. Do a full backup of your current database/installation
  3. Upgrade to the latest Tiki version (8.0 SVN or later).
  4. Disable MySQL fulltext search in Tiki. It’s not supported by InnoDB, and you won’t be able to disable it from the GUI after the conversion. MySQL 5.6 and ulterior InnoDB tables support fulltext search, so this may no longer be required.
  5. Drop all MyISAM fulltext indexes
  6. Alter the database engine for all tables to InnoDB

Steps 5 and 6 are defined in the file db/tiki_convert_myisam_to_innodb.sql. This script is fragile and may not treat all tables (step 6, as of 2017-06-28).

Database upgrades

When adding an engine dependent patch, the engine independent SQL must be put in the YYYYMMDD_description_tiki.sql file. The engine dependent parts must be put in an accompanying php file, specifying a post_YYYYMMDD_description_tiki function.
Example: Add a table with a fulltext index
20110918_tiki_test_tiki.sql
DROP TABLE IF EXISTS `tiki_test`;
CREATE TABLE `tiki_test` (
  `title` varchar(255) default NULL,
  KEY `title` (`title`)
) ENGINE=MyISAM;

and a PHP file specifying the engine dependent part
20110918_tiki_test_tiki.php
function post_20110918_tiki_test_tiki( $installer ) {
  if($installer->isMySQLFulltextSearchSupported()) {
    $installer->query( "CREATE FULLTEXT INDEX ft_test ON tiki_test(`title`);");
  }
}



See also: ExperimentalBranches InnoDB

doc.tiki.org


Bootstrap

AdminGuide

UserGuide

Keywords

Keywords serve as “hubs” for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):

Accessibility (WAI and 508)
Accounting (7.x)
Articles and Submissions
Backlinks
Banners
Batch (6.x)
BigBlueButton audio/video/chat/screensharing (5.x)
Blog
Bookmark
Browser Compatibility
Link Cache
Calendar
Category
Chat
Clean URLs
Comments
Communication Center
Compression (gzip)
Contacts (Address Book)
Contact us
Content Templates
Contribution (2.x)
Cookie
Copyright
Credit (6.x)
Custom Home and Group Home Page
Date and Time
Debugger Console
Directory of hyperlinks
Documentation link from Tiki to doc.tiki.org (Help System)
Docs 8.x
Draw 7.x
Dynamic Content
Dynamic Variable
External Authentication
FAQ
Featured links
File Gallery
Forum
Friendship Network (Community)
Gmap Google maps
Groups
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
Kaltura video management (4.x)
Karma
Live Support
Login
Logs (system & action)
Look and Feel
Lost edit protection
Mail-in
Map with Mapserver
Menu
Meta Tags
Mobile Tiki and Voice Tiki
Mods
Module
MultiTiki
MyTiki
Newsletter
Notepad
Payment
Performance Speed / Load
Permissions
Platform independence (Linux-Apache, Windows/IIS, Mac, BSD)
Polls
Profiles
Profile Manager
Report
Toolbar
Quiz
Rating
Feeds
Score
Search engine optimization
Search
Search and Replace
Security
Semantic links (3.x)
Shadowbox
Shadow Layers
Share
Shopping cart
Shoutbox
Slideshow
Smiley
Social Networks
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Stats
Surveys
Tags (2.x)
Task
Tell a Friend, alert + Social Bookmarking
TikiTests (2.x)
Theme CSS & Smarty
Trackers
Transitions (5.x)
TRIM
User Administration including registration and banning
User Files
User Menu
Watch
WebHelp
WebDAV (5.x)
Webmail
Web Services
Wiki 3D
Wiki History, page rename, etc
Wiki Page Staging and Approval (2.x)
Wiki Plugin extends basic syntax
Wiki Syntax
Wiki structure (book and table of content)
Workspace
WSOD
WYSIWYCA
WYSIWYG (2.x)
XMLRPC


Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki
Show php error messages