You can restore your settings without being able to login to your dashboard. You can just edit wo-config.php, normally people use either FTP or your hosting management login, add these two lines to your wp-config.php file.
Then you will be able to login.
Then you will be able to restore your settings in the database.
Then remove the two extra lines from your wp-config.php