mysql restore sql.gz code example Example: restore backup mysql .gz gunzip < yourDatabaseName.sql.gz | mysql -u root -p yourDatabaseName