How can I manually activate my previous theme without browser access to dashboard?

In your current theme, you can use switch_theme(‘stylesheet’) in the index.php of your theme folder.No need to make changes in the database 🙂

<?php
 switch_theme('twentyfifteen');//Specify the name of stylesheet of intended theme
 exit;
 //Rest of the code
?>

You can remove the code after use