/usr/share/doc/rt4-doc-html/UPGRADING.mysql.html is in rt4-doc-html 4.4.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | <p>If you did not start by reading the <i><a href="README.html">README</a></i> file, please start there; these steps do not list the full upgrading process, merely a part which is sometimes necessary.</p>
<p>This file applies if either:</p>
<ol>
<li><p>You are upgrading RT from a version prior to 3.8.0, on any version of MySQL</p>
</li>
<li><p>You are migrating from MySQL 4.0 to MySQL 4.1 or above</p>
</li>
</ol>
<p>If neither of the above cases apply, your should upgrade as per the instructions in the README.</p>
<p>These changes are necessary because MySQL 4.1 and greater changed some aspects of character set handling that may result in RT failures; this will manifest as multiple login requests, corrupted binary attachments, and corrupted image custom fields, among others. In order to resolve this issue, the upgrade process will need to modify the schema.</p>
<ol>
<li><p>If you are moving the database and/or upgrading MySQL</p>
<dl>
<dt id="a">1a.</dt>
<dd>
<p>Dump the database; with MySQL 4.1 and greater be sure to pass the mysqldump command the --default-character-set=binary option. This is necessary because the data was originally encoded in Latin1.</p>
</dd>
<dt id="b">1b.</dt>
<dd>
<p>Configure the new MySQL to use Latin1 as the default character set everywhere, not UTF-8. This is necessary so the import in the next step assumes the data is Latin1.</p>
</dd>
<dt id="c">1c.</dt>
<dd>
<p>Import the dump made in step 1a into the new MySQL server, using the --default-character-set=binary option on restore. This will ensure that the data is imported as bytes, which will be interpreted as Latin1 thanks to step 1b above.</p>
</dd>
<dt id="d">1d.</dt>
<dd>
<p>Test that your RT works as expected on this new database.</p>
</dd>
</dl>
</li>
<li><p>Backup RT's database using --default-character-set=binary Furthermore, test that you can restore from this backup.</p>
</li>
<li><p>Follow instructions in the README file to step 6b.</p>
</li>
<li><p>Apply changes described in the README's step 6b, but only up to version 3.7.87.</p>
</li>
<li><p>Apply the RT 3.8 schema upgrades. Included in RT is the script etc/upgrade/upgrade-mysql-schema.pl that will generate the appropriate SQL queries:</p>
<pre><code> perl etc/upgrade/upgrade-mysql-schema.pl db user pass > queries.sql</code></pre>
<p>If your mysql database is on a remote host, you can run the script like this instead:</p>
<pre><code> perl etc/upgrade/upgrade-mysql-schema.pl db:host user pass > queries.sql</code></pre>
</li>
<li><p>Check the sanity of the SQL queries in the queries.sql file yourself, or consult with your DBA.</p>
</li>
<li><p>Apply the queries. Note that this step can take a while; it may also require additional space on your hard drive comparable with size of your tables.</p>
<pre><code> mysql -u root -p rt3 < queries.sql</code></pre>
<p>NOTE that 'rt3' is the default name of the RT database, change it in the command above if your database is named differently.</p>
<p>This step should not produce any errors or warnings. If you see any, restore your database from the backup you made at step 1 and examine the errors to determine the cause. Consult your DBA for MySQL-specific issues. For RT issues, you can post to the community forum at <a href="https://forum.bestpractical.com">https://forum.bestpractical.com</a> for help or send email to sales@bestpractical.com for professional assistance.</p>
</li>
<li><p>Re-run the `make upgrade-database` command from step 6b of the README, applying the rest of the upgrades, starting with 3.7.87, and follow the README's remaining steps.</p>
</li>
<li><p>Test everything. The most important parts you have to test:</p>
<ul>
<li><p>binary attachments, like docs, PDFs, and images</p>
</li>
<li><p>binary custom fields</p>
</li>
<li><p>everything that may contain characters other than ASCII</p>
</li>
</ul>
</li>
<li><p>If you were upgrading from MySQL 4.0, you may now, if you wish, reconfigure your newer MySQL instance to use UTF-8 as the default character set, as step 7 above adjusted the character sets on all existing tables to contain UTF-8 encoded data, rather than Latin1.</p>
</li>
</ol>
<a href="./">← Back to index</a>
|