To turn-off or disable (and vice-versa, to turn on and enable) Drupal 7 maintenance mode via phpMyAdmin, enter an SQL command in the field under the SQL tab:
To set website into maintanance mode:
UPDATE `variable` SET `value`=’1′ WHERE ‘name’ = ‘maintenance_mode’
Change ‘value’ to ‘0’ to take site out of maintenance mode
Click Go to execute command.
To allow you as admin to use site in maintenance mode:
UPDATE `variable` SET `value`=’your.IP.address.here’ WHERE ‘name’ = ‘skip_maintenance_mode_by_ip_ip’
(substitute _ip_ip with your actual IP address of your internet connection for your desktop computer for the value above)
To disable or enable by settings.PHP, see this article – How to turn-off disable (or turn on and enable) Drupal maintenance mode and status without Drush
To disable or enable by Drush or terminal command, see this article – How to turn-off disable (or turn on and enable) Drupal maintenance mode and status using Drush command