Will i run into problems if my dev server is running mysql 4.0.24 and my production server is running mysql 4.1.19? Anyone have experience with something like this?

Comments

pwolanin’s picture

I think one issue is character encodings. I had problems going the other direction 4.0 -> 4.1.

Also, I think there is a flag for mysqldump so that the queries put out by dumping a 4.1 dayabase are compatible with 4.0.

---
Work: BioRAFT

Nick Lewis’s picture

But "they" say all sorts of crap.

I wouldn't go as far as to say it is "unnacceptable". However, from experience, I can assure you that lots of things go wrong in between pushes between dev and production -- and that's when both enviroments are identical. Having two different versions of MYSQL is likely to make things more difficult. I'd recommend against it. At the very least, set up a staging server before you push to production -- that is unless you enjoy pain.

--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
http://www.nicklewis.org

--
"I'm not concerned about all hell breaking loose, but that a PART of hell will break loose... it'll be much harder to detect." - George Carlin
--
Personal: http://www.nicklewis.org
Work: http://www.zivtech.com

benbruscella’s picture

If the main site is using 4.1, then to dump for version 4.0:

mysqldump --opt --compatible=mysql40 -v -u DATABASE_USER -p DATABASE_NAME > database.40.mysql

To dump for version 4.1, use:

mysqldump --opt -v -u DATABASE_USER -p DATABASE_NAME > database.41.mysql

pwolanin’s picture

For the 4.0 -> 4.1, in order to avoid manging special characters, I needed to use:

mysqldump -uusername -ppassword --add-drop-table --default-character-set=latin1 database > backup41.sql

when restoring into MySQL 4.0 from the command line:

mysql -uusername -ppassword --default-character-set=utf8 database < backup41.sql

---
Work: BioRAFT

gopher’s picture

Thanks for the advice guys. I'll see if I can't get the dev environment set up on the same server setup as production if I can.