mysql_db module now correctly fails on import if bz2 or gz fails.
Added mpdehaan suggestion to use os.path.splitext. Wise suggestion, does look clearner
Merge pull request #6766 from Jmainguy/mysql_db_bug

mysql_db module now correctly fails on import if bz2 or gz fails.