Lost SQL access

carlos.teixeira's Avatar


21 Apr, 2017 09:42 AM


I have recently starting working for a new company and was about to update octopus server to the latest release as we are fairly back in terms of updates.
So I went ahead and started backing up everything until I got to the database. As my user does not have access and the person that installed octopus is no longer in my company, neither left any credentials for it,I do not have access to the OctopusDeploy database.
Is there any way to find the credentials that the octopus deploy server uses to connect to the database?

Best Regards,

  1. Support Staff 1 Posted by Kenneth Bates on 24 Apr, 2017 06:35 AM

    Kenneth Bates's Avatar

    Hi Carlos,

    Thanks for getting in touch! You can see how Octopus connects to your database by checking your connection string. This is located in your OctopusServer.config file (located in C:\Octopus in standard installations), and it is displayed in your Octopus Manager window (see my first screenshot) on your Octopus server.

    If your Octopus instance connects to your database via SQL authentication, your connection string will show the username and password. If it's integrated authentication, it won't show username and password in the connection string, and database connections are made by the user that is running your Octopus service. You can find this user by checking the properties of the 'OctopusDeploy' service listed in your services management console (see my second screenshot). If it's running as local system, then the local system account has access to the database.

    I hope this helps! Don't hesitate to reach out if you have any further questions or concerns.

    Best regards,


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac