I’ve taken backup of the files & database from remote server and then copied the files & installed the db on my localhost but it is giving this error:
Site off-line We are currently under
maintenance. We should be back
shortly. Sorry for this inconvenience.
I’ve changed the settings.php to my localhost db and also retained the localhost version of .htaccess
I’ve also done such transfers for drupal sites but this time I can figure out what is happening.
What Berkes is suggesting is the right answer. I’m adding this as another answer so I can post SQL if that is not working.
Basically, user ID 1 should be able to see the site as if it were out of maintenance mode, even if it is in maintenance mode.
If you login at the /user screen, and you still see maintenance mode, then you are probably not logging in as user 1.
So if you want to force your site out of maintenance mode from MySQL queries, you can try to force the variable with this: