restore mySQL database from .bz2 code example Example: restore mySQL database from .bz2 bunzip2 < db_filename.sql.bz2 | mysql -u root -p target_db_name