0 like 0 dislike
767 views
in Education & Reference by (870 points)
Hi,

I am using otrs5 and would like to use InnoDB instead of MyISAM because of table locking issue.

Can anyone help me?

2 Answers

0 like 0 dislike
by (850 points)

[[email protected] bin]$ ./otrs.Console.pl Maint::Database::MySQL::InnoDBMigration
Checking for tables that need to be converted to InnoDB...
95 tables need to be converted.
You can re-run this script with --force to start the migration.
This operation can take a long time.

[[email protected] bin]$ ./otrs.Console.pl Maint::Database::MySQL::InnoDBMigration --force

OUTPUT
Converting all database tables to InnoDB...
95 tables need to be converted.
Changing table acl to engine InnoDB...
Changing table acl_sync to engine InnoDB...
Changing table article to engine InnoDB...
Changing table article_attachment to engine InnoDB...

AND to VERIFY

mysql> SELECT TABLE_NAME,  ENGINE FROM   information_schema.TABLES WHERE  TABLE_SCHEMA = 'otrs';

OUTPUT
+------------------------------+--------+
| TABLE_NAME | ENGINE |
+------------------------------+--------+
| acl | InnoDB |
| acl_sync | InnoDB |
| article | InnoDB |
| article_attachment | InnoDB |

0 like 0 dislike
by (1.4k points)

Dont forget to modify my.cnf file

add line
default-storage-engine=InnoDB

Related questions

0 like 0 dislike
1 answer 257 views
asked Jan 18, 2019 in Education & Reference by Marc (3k points)
2 like 0 dislike
1 answer 289 views
0 like 0 dislike
1 answer 43 views
0 like 0 dislike
1 answer 219 views
0 like 0 dislike
1 answer 113 views
asked May 14, 2020 in Education & Reference by Marc (3k points)
2 like 0 dislike
1 answer 921 views
0 like 0 dislike
1 answer 177 views
0 like 0 dislike
2 answers 6k views
asked Oct 25, 2017 in Education & Reference by Krish (850 points)
0 like 0 dislike
1 answer 1.7k views
...