How do you go about migrating a FogBugz database from one MySQL instance to another?
(see this post for moving the FogBugz site)
|
2
3
|
|
|
|
|
3
|
NB: Before you go through any of this, you should make sure there are no FogBugz-unfriendly settings in your MySQL instance and that there's adequate disk space (3x the dump file size) on the MySQL machine. This guide is intended for people who want to move a MySQL FogBugz database over to a new MySQL installation. If you are upgrading from a previous version of FogBugz at the same time as moving your database, please install the upgraded FogBugz code against the old database if this is applicable or feasible, log in once so FogBugz can do the upgrade, and then proceed to moving your database.
If you changed platforms (switched between Windows and Unix/Linux), you will need to clear the passwords for your users and have them set them again. The hashing algorithm is different for the two platforms. You can do this with the following sql query:
A platform may also require that you enable the "lowercase_table_names" setting in your my.ini or my.cnf file. |
|||
|
|
|
1
|
You may also need to add --max_allowed_packet option to mysqldump, it seems to need it, like so: mysqldump --max_allowed_packet=50M fogbugz > createfb.sql I kept getting this error before I used the option above: mysqldump: Error 2020: Got packet bigger than 'max_allowed_packet' bytes when dumping table |
||
|
|
|
0
|
Note: you might need to increase the value of your MySQL Find your my.ini file (the configuration file for MySQL). It's normally here:
Search your MySQL my.ini file's [mysqld] seciton, for this:
If you find it, make sure it says:
If you don't find that line, add it. Stop and start the MySQL server. From the MySQL command line, verify your change by typing:
|
|||
|