Restoring Backups

This section will cover restoring a database backup of your Monolith MySQL database.

Backup Data

This restore process assumes you have previously created a SQL dump of your Monlith databse from MySQL. A SQL dump file is a plain text file that contains your database data in a SQL format.

Database Schemas

MySQL has a concept called "schemas". Schemas are the data segements within MySQL that store tables and data. You can have any number of schemas within a MySQL database. Your Monolith data is stored within a single schema within MySQL.

Schemas are the data object that we will backup and restore from backups.

Restore Steps

Recommended Tools:

  • MySQL Workbench

    • This is a free tool provided by the MySQL team to access and manage MySQL databases. It also has several useful utilities including database backup and backup import services.

  1. Open MySQL Workbench

  2. Ensure that Workbench has a connection to your Monolith database.

  3. Open your Monolith database in MySQL workbench.

  4. Select "Server >> Data Import" from the Workbench menu bar.

  5. The import wizard should start at the "Import from Disk" tab - select this tab if its not selected.

  6. Under "Import Options", check the radio button for "Import from Self-Contained file".

  7. Use the file select browser to locate and choose your Monolith database backup, which should have a ".sql" extension.

  8. (Optional) Select a default target schema or create a new one.

    1. This is optional because your SQL dump file likely already has a directive to create a new schema with the correct name.

  9. Click the "Start Import" button.

This process will create a new "schema" and populate it with tables and data from your Monolith database backup.

If the new schema has a different name from your original Monolith schema (database), then you may need to update your Monolith deployment configuration.

Last updated