Support » Plugin: Maintenance Mode » Will Maintenance Mode work if MySQL is stopped?

  • mbottos


    I need to upgrade our MySQL version and I’ve got the ok to do so if Maintenance Mode page will show while MySQL server is stopped. I would assume it would throw like a 500 error but was hoping to be surprised in that this plugin will show a maintenance page while MySQL is stopped and being upgraded.
    Running WordPress On Windows Server2012, sites through IIS.

Viewing 1 replies (of 1 total)
  • Plugin Author Lukas Juhas


    Hi there,

    Currently, the maintanance mode will not work if the MySQL server is stopped. I believe WordPress itself handling the maintenance mode using a “.maintenance” file which if is present in the root directory of the installation will restult in the common big message that the website will be back shortly. I’ve been considering this and trying to come up with a solution to change the way how the plugin works and support scenarios like when MySQL server is not running but I’ve not had chance to do this.

    How you could perhaps go around this, is maybe to try cache the site with maintenance mode on. In that way, you could show the maintenance mode (cached page) even if the mysql is down. I have not tried this myself, it’s just something I’m thinking out loud now.

    I hope this helps, sorry I can’t be any better help.


Viewing 1 replies (of 1 total)
  • The topic ‘Will Maintenance Mode work if MySQL is stopped?’ is closed to new replies.