Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Feb 24, 2006 7:27 am 
Offline
Senior Newbie

Joined: Fri Feb 24, 2006 7:09 am
Posts: 6
Website: http://www.stocksy.co.uk
Hello,

I have a MySQL database which stores images as BLOBs. At present, the database is running on a Mac OS X host with MySQL 4.1.12 installed. I am trying to move the database to my Linode running Debian Sarge with MySQL 4.1.11.

I am using this command to dump the database:
Code:
$ mysqldump -uroot -p --opt gallery > dump.sql



And to import it on the Linode:
Code:
$ mysql -uroot -p --execute="create database gallery;"
$ mysql -uroot -p -e 'source dump.sql'


No errors are reported, but when I look at the images in the database, the appear corrupt (lots of ? characters).

I also tried just shutting down MySQL and copying the data directory over - same effect.

Any advice?
James.


Top
   
 Post subject:
PostPosted: Fri Feb 24, 2006 8:25 am 
Offline
Junior Member

Joined: Tue Aug 30, 2005 9:42 am
Posts: 29
Website: http://www.indiegigs.co.uk
How are you transferring dump.sql to your linode? Is something doing Windows->Unix line conversions on the data?

Andrew


Top
   
 Post subject:
PostPosted: Fri Feb 24, 2006 8:57 am 
Offline
Senior Newbie

Joined: Fri Feb 24, 2006 7:09 am
Posts: 6
Website: http://www.stocksy.co.uk
andrewjw wrote:
How are you transferring dump.sql to your linode? Is something doing Windows->Unix line conversions on the data?


I'm just using scp to copy the dump directly from one server to the other - no text mangling involved.

For the record, if I transfer an 'ordinary' database, that is to say one without BLOBs, it imports with no problems.

James.


Top
   
 Post subject: Solved
PostPosted: Wed Mar 08, 2006 6:15 pm 
Offline
Senior Newbie

Joined: Fri Feb 24, 2006 7:09 am
Posts: 6
Website: http://www.stocksy.co.uk
Well, turns out there was nothing wrong with the MySQL database - I missed a setting in php.ini. Oops!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group