As requested by Frank, here are the working parts of my earlier Downgrading a MySQL schema from 5 to 4 article.
The Problem
To recap, I received a MySQL Version 5.0 schema via a sql file, however I was unable to upgrade from MySQL 4.0 to MySQL 5.0 on my old RedHat 7.3 production server. As an interim solution, I still wanted the schema and data to allow for initial development (without the 5 specific features including Views,Triggers and Procedures/Functions). However the MySQL 5.0 SQL file would not run in MySQL 4.0.
Sample
Here is a small subset of the MySQL Sakila Sample Database schema to demonstrate the problem.
DROP SCHEMA IF EXISTS sakila; CREATE …[Read more]