Changes between Version 20 and Version 21 of SqLiteToMySql
- Timestamp:
- May 26, 2015, 8:39:00 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SqLiteToMySql
v20 v21 1 1 = Convert Trac DB, from SQLite to MySQL 2 2 3 The easiest way to convert a Trac SQLite database to a MySQL database is as follows: 3 **Note:** You can also use [TracHacks:TracMigratePlugin] as a conversion tool. 4 5 You can convert a Trac SQLite database to a MySQL database as follows: 4 6 5 7 {{{ … … 95 97 ---- 96 98 One alternative to dropping the reports is to log into trac as a privileged user that can edit the reports, call up one report after the other, click on EDIT and look out for {{{CAST(p.value AS int)}}}. Change this to {{{CAST(p.value AS unsigned)}}} and it should work. This might be easier than recreating all your custom reports. 97 ----98 99 You can also use [TracHacks:TracMigratePlugin] as a conversion tool.100 101 The only issues you might run into are with character collation on your database. With the default latin1 character set and latin1 collation, `/path/to/file` and `/path/to/FILE` are identical, potentially causing index collisions. Therefore create your database with UTF8 binary collation '''and''' set the server's default table type to InnoDB:102 103 * in my.cnf:104 {{{105 [mysqld]106 default-table-type = InnoDB107 }}}108 109 * in the mysql client:110 {{{111 CREATE DATABASE trac DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;112 }}}113 114 Also, look at ticket:6986 to significantly improve Trac performance with MySQL.115 116 ----117 99 118 100 This page contains a summarised procedure: http://www.pokesoft.net/blog/?p=473