This PHP CODE snippets will change your database engine from InnoDB to MyISAM, this is useful when you need to save time manually changing all the tables from InnoDB to MyISAM, for example when a CMS populates a database with tables that use InnoDB but you cannot run on your web host because InnoDB is disabled and MyISAM is your remaining options.
Commonly on a shared hosting environments, web host disabled InnoDB because it requires more disk space and eats more Server resources and Memory than MyISAM. To use this scripts you need to change the variables:
$dbServer // Database server, commonly use value is localhost
$dbUser // Database User, the one with priveleges to your database
$dbPass // Password of the Database User
$dbName // The database you want to convert from InnoDB to MyISAM