Scenario: "Rosario": Restore a MySQL database
Level: Medium
Type: Fix
Tags: mysql
Description: A developer created a database named 'main' but now some data is missing in the database. You need to restore the database using the the dump "/home/admin/backup.sql".
The issue is that the developer forgot the root password for the MariaDB server.
If you encounter an issue while restoring the database, fix it.
Credit: Sebastian Segovia
Root (sudo) Access: False
Test: The database, once restored, has a table named "solution".
The "Check My Solution" button runs the script /home/admin/agent/check.sh, which you can see and execute.
Time to Solve: 15 minutes.