logoStashPNGI was having a problem where Stash (which was installed as a service) wasn’t starting up properly and giving me a page that made it look like there was a problem with the database.

I have a local MySQL on the same machine as the Stash server, and both that service and the Stash server are set to automatically start up.

Now the only thing I could think was that the Atlassian Stash service was getting started before MySQL was completely up, so I went looking at the dependencies:


The dependencies obviously didn’t include the MySQL56.

So I thought the logical thing to do would be to add a dependencies to the MySQL56 service, and then make the Atlassian Stash service dependent on that, so I ran the following:

This makes the service depend on MySQL56, and appears to resolve the issue.