Ahsay simplifies MariaDB database recovery with its automated processes. AhsayOBM swiftly restores MariaDB database files from the backup destination and applies them to the MariaDB database instance, either on the original server or remotely to a standby server over the LAN. For system administrators who prefer greater control over the recovery process, the “Restore Raw File” option is available. This feature allows AhsayOBM to restore the database files to a local disk, after which the system administrator must manually create the databases and import them into the MariaDB instance either on the original database server, or copy the files to a standby or remote server.
Please use the following steps and tips to make MariaDB database recovery quick and reliable using AhsayOBM.
How to:
- Before running the restore job, open and login to the MariaDB Command Line Client.
- Verify that the database instance is running by using the command show databases.
- After verifying, open and login to AhsayOBM.
- From the AhsayOBM home screen, click [Restore].
- Select the backup set containing the database/s you want to restore.
- Check the Temporary Directory.
- Ensure the following:
- Directory is a valid location when restoring on a replacement machine.
- Directory is not set to the same drive where Windows OS is installed.
- Directory is not set to a network drive as it may affect the restore performance.
- Ensure the following:
- Select where to restore your data from.
- It is recommended to select a local destination, if applicable.
- Select what to restore: Choose from files as of job
- Default selection shows the latest version. You may select a specific version by clicking the menus next to it.
- Select the databases you aim to recover.
- Click [Next].
- Enter the host, port, username, and password.
- Modify the "Verify checksum" setting" if preferred.
- Click [Restore].
Recover deleted and existing databases to the original machine
- Before running the restore job, open and login to the MariaDB Command Line Client.
- Verify that the database instance is running by using the command show databases.
- After verifying, from the Restore page of AhsayOBM, select what to restore. You may select a previous version or keep the default selection which is the latest version.
- Select databases to recover.
- Click [Next].
- When restoring to the original machine, the host, port, username, and password do not have to be modified. Click [Next].
- A warning sign on a new database's name indicates that an existing database has a similar name and may be overwritten after the restore job. Change the name of the database if you want to clone an existing database to compare information.
- Click [Restore].
- Verify if the databases have been recovered through the MariaDB Command Line Client. Use the command show databases.
Recover files to an alternate/standby machine within the same LAN
- Before running the restore job, open and login to the MariaDB Command Line Client using the alternate/standby machine.
- Verify that the database instance is running by using the command show databases.
- After verifying, from the Restore page of AhsayOBM, select what to restore. You may select a previous version or keep the default selection which is the latest version.
- Select databases to recover.
- Click [Next].
- For host, enter the IP address of the alternate/standby machine. Then modify the port, username, and password, if required.
- Click [Next].
- Default system databases may be selected. Specify a new name for the databases, if preferred. Otherwise, a warning message will appear to ask for confirmation to overwrite the existing databases.
- Click [Restore].
- To verify if the databases have been recovered, open and login to the MariaDB Command Line Client on the alternate/standby machine. Use the command show databases.
Recover databases manually
Note: Manual recovery requires advanced knowledge of MariaDB database, including commands and procedures.
- Before running the restore job, open and login to the MariaDB Command Line Client.
- Verify that the database instance is running by using the command show databases.
- After verifying, from the Restore page of AhsayOBM, select what to restore. You may select a previous version or keep the default selection which is the latest version.
- Select databases to recover.
- Enable Restore raw file.
- Click [Next].
- Click [Browse] and select a local destination. Click [OK].
- Click [Restore].
- To verify if the databases have been recovered:
- Check the Restore Report to confirm if the selected databases have been restored to the selected destination.
- Open the selected destination to check if the selected databases have been recovered.
- Open the MariaDB Command Line Client. Use the command show databases.
- To manually create and import the databases into the MariaDB server:
- Use the command create database [name of the database];
- Then use [name of the databases];
- Followed by source [letterdrive:\folder\subfolder\filename]
- Example: source d:\abc\123\world.sql
- Check the queries and make sure no error exists.
- To see the informaton of the database:
- Use the command show tables.
- You may check the information of a table by using select * from [name of the table].
- You may count the rows of a table by using select count(*) from [name of the table].