"Rosario": Restore a MySQL database #83
KarthikKota2003
started this conversation in
Scenarios
Replies: 1 comment 4 replies
-
|
hello @KarthikKota2003 , the check.sh script (that "Check my solution" button calls) tries to connect to the db and verify that the table exists. So if you properly restored the table then perhaps the connection string or query are not working (eg: table with a different name, table not in the same db name). |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Why does this scenario - "Rosario": Restore a MySQL database not accept a different solution ?
Here is my approach :
I have killed and started the mysql server with a new sql file that changes the root users password through ALTER query
ALTER USER 'root'@'localhost' IDENTIFIED VIA mysql_native_password USING PASSWORD('new_password');
I have restarted the mysql service and started mariadb as well. I can connect to mariadb console safely and see the main database. Initially like any real-world scenario i have thought that the database might itself be corrupted so i dropped it and created a new database and restored it.
And yes, i have ofcourse corrected the backup.sql file.
After restoring it using the sql script i could see the solution table. But this is showing as incorrect in the solution part.
Help me understand if I am doing it in the wrong way or is it the issue on the solution side ?
Beta Was this translation helpful? Give feedback.
All reactions