The other day I couldn’t access my admin panel on my blog Massivo. Turns out I damaged the database with a well executed WordPress Hook. I couldn’t do anything because I just couldn’t log into the WordPress Admin area. The only thing that “saved me” was using a SQL Command using phpMyAdmin.
So if you happen to be stuck in a situation like that and need to reset the WordPress theme to the default one, follow the next easy steps.
-- Manually Set WordPress Theme by Going to your phpMyAdmin -- Selecting the Desired Database in the SQL Tab, select each of the below lines individually and execute each of them. update wp_options set option_value = 'default' where option_name = 'template' update wp_options set option_value = 'default' where option_name ='stylesheet'