Convert BZ2 to SQL

Turn BZ2 archives into SQL. The bzip2 layer is removed and the bytes inside are written as they were.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop BZ2 files on the dialor turn it to pick what to do

A SQL script out of a bzip2 file.The compression is removed and the SQL inside is written as it was.

  1. What you get

    One SQL file. The bzip2 layer is taken off, and the bytes inside are written out as they were, with no edits to the statements.

    If the BZ2 file holds a database dump, the SQL file is that dump, ready for any SQL tool to read or replay.

  2. What to know first

    Ask for the format you know is inside. If the file inside is not SQL, the conversion refuses it.

    A BZ2 file that cannot be parsed stops with input_corrupted. A file that holds something SQL cannot carry stops with unsupported_elements.

    There are no options to set. To pack a script again, use SQL to BZ2.

BZ2 and SQL.What each format is.

The formats

From · BZ2

Bzip2

A single file compressed with bzip2.

Extensions
.bz2
MIME type
application/x-bzip2
Kind
Archives
To · SQL

SQL Script

SQL statements as text. A database dump that any SQL tool can read or replay.

Extensions
.sql
MIME type
application/sql
Kind
Text and data

In your code.The same BZ2 to SQL conversion through the API, for your app or your agent.

terminal
$ cv convert archive.bz2 archive.sql
$ cv convert archive.bz2 archive.sql

Questions.What people ask about BZ2 to SQL.

01OF 04

No. The bytes inside the BZ2 file are written as they were.

The conversion is refused. Only choose SQL when you know a SQL script is inside.

The BZ2 file could not be parsed. The conversion stops with input_corrupted and no SQL file is written.

Yes. SQL to BZ2 does the reverse.

More conversions.Other ways in and out of BZ2 and SQL.