Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By gopher on
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
2 things to watch
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
Its not how they say you are supposed to do it...
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
dump 2 versions of the database
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
For the 4.0 -> 4.1, in order
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
Thanks for the advice guys.
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.