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