Difference between revisions of "MySQL"
From OpenKM Documentation
(→Change mysql default engine to InnoDB) |
|||
Line 11: | Line 11: | ||
== Change mysql default engine to InnoDB == | == Change mysql default engine to InnoDB == | ||
+ | Check if your MySQL installation has InnoDB engin enabled: | ||
+ | |||
+ | $ mysql -h localhost -u root -p | ||
+ | mysql> show engines; | ||
+ | |||
In order to change the default storage engine edit '''/etc/mysql/my.cnf''' and under '''[mysqld]''' section in your ini file, and add: | In order to change the default storage engine edit '''/etc/mysql/my.cnf''' and under '''[mysqld]''' section in your ini file, and add: | ||
Line 16: | Line 21: | ||
{{Advice|[http://en.wikipedia.org/wiki/InnoDB InnoDB] is the preferred engine because it support transactions. [http://en.wikipedia.org/wiki/MyISAM MyISAM] is more responsive but does not support transactions.}} | {{Advice|[http://en.wikipedia.org/wiki/InnoDB InnoDB] is the preferred engine because it support transactions. [http://en.wikipedia.org/wiki/MyISAM MyISAM] is more responsive but does not support transactions.}} | ||
+ | |||
+ | See also: | ||
+ | * [http://dev.mysql.com/doc/refman/5.0/en/converting-tables-to-innodb.html Converting Tables from Other Storage Engines to InnoDB] | ||
+ | * [http://highervisibilitywebsites.com/convert-your-mysql-database-myisam-innodb-and-get-ready-drupal-7-same-time Convert your MySQL database from MyISAM to InnoDB] | ||
+ | |||
* [[MySQL-OpenKM 5.0 | OpenKM 5.0]] [[File:Padlock.gif]] (also valid for OpenKM 5.1) | * [[MySQL-OpenKM 5.0 | OpenKM 5.0]] [[File:Padlock.gif]] (also valid for OpenKM 5.1) |
Revision as of 18:12, 14 February 2012
Download MySQL JDBC driver from MySQL Home Page and move it to $JBOSS_HOME/server/default/lib.
Change mysql default engine to InnoDB
Check if your MySQL installation has InnoDB engin enabled:
$ mysql -h localhost -u root -p mysql> show engines;
In order to change the default storage engine edit /etc/mysql/my.cnf and under [mysqld] section in your ini file, and add:
default-storage-engine = innodb
InnoDB is the preferred engine because it support transactions. MyISAM is more responsive but does not support transactions. |
See also:
- Converting Tables from Other Storage Engines to InnoDB
- Convert your MySQL database from MyISAM to InnoDB
- OpenKM 5.0 (also valid for OpenKM 5.1)
- OpenKM 4.1