Where did you get the MySQL packages from that failed to install? You might have to clean out some config files before everything works together again, since the newer versions of things might have overwritten older configs, and just reinstalling the older packages might not overwrite them.