[rt-users] Data Migration (Pg to MySQL script)

Mathew Snyder msnyder at servervault.com
Mon May 1 21:38:54 EDT 2006


We're moving everything in our current Postgres database to a new
instance of RT with a MySQL database.  So far we've figured out the need
to port it over to an identical version and then work through the
upgrade path in order for the migration to work the way it should.

However, we've encountered a problem with the attachments.  Everything
seems to run well until we get to what appears to be an image.  This is
a portion of the output:

<begin output>
...
AsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOd
AsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOd
AsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOd
AsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOd
AsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOd
AsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOd
AsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsOdAsKdAsKdAsKc
AsKdAlwCwpwCwpwCXALCnQJdAlwCXAI8AjwCXAJcAlwCXQI9Ag==
,,2004-07-07 16:54:34,base64,Outlook.bmp,4527,2821,image/bmp at
./donotrunmeidobadthings.pl line 68.
<end output>

(donotrunmeidobadthings.pl is the script rt-on-pg-to-mysql with
modifications that clear out all the data in the new database before
starting the migration.)

So basically, we get this dump to the screen and then the script stops.
 We thought it might be the attachment being too large for the amount of
memory allocated.  My colleague set the allocation to 16MB thinking the
image couldn't be that big.  We still get the error though.

Any ideas what could be causing this?  Any input will help.

-- 
Mathew Snyder
Systems Administrator
Network+
ServerVault TechOps




More information about the rt-users mailing list