Octopus Deploy stores projects, environments, and deployment history in a Microsoft SQL Server database.
SQL Server Database
The following versions of SQL Server Database are supported and automatically tested against every release of Octopus Deploy server:
- SQL Server 2008
- SQL Server 2008 R2
- SQL Server 2012
- SQL Server 2014
- SQL Server 2016
- SQL Server 2017
- Express (free)
- Microsoft Azure SQL Database
- AWS RDS SQL Database
Using SQL Server Express
The easiest and cheapest way to get started is with SQL Server Express and install the Octopus Deploy server and SQL Server Express side-by-side on your server. This is a great way to test Octopus for a proof of concept. Depending on your needs, you might decide to use SQL Server Express, or upgrade to another supported edition.
Creating the Database
The Octopus installation wizard can create the database for you (our recommended method), during the installation; however, you can also point Octopus to an existing database. Octopus works with both local and remote database servers, but it is worth considering the performance implications before making a decision.
If you are using a hosted database service you will need to create your own database and provide Octopus with the connection details.
Create Your Own Database
If you don't want Octopus to automatically create the database for you as part of the installation process, please note the following:
- The database must not be shared with any other application.
- The default schema must be dbo.
- The database must use a case-insensitive collation (a collation with a name containing "_CI_").
- If you are using Integrated Authentication to connect to your database:
- The user account installing Octopus must be a member of the db_owner role for that database.
- The account the Octopus Deploy windows server process runs under (by default, the
Local Systemaccount) must be a member of the db_owner role for that database.
- If you are using SQL Authentication to connect to your database, the SQL user account defined in your connection string must be a member of the db_owner role for that database.
Changing the Database Collation
Learn more about changing the database collation after the initial Octopus installation.
Using SQL Server AlwaysOn
Octopus will work with any of the supported highly available SQL Server implementations.
Make sure the Octopus Deploy server is connecting to the listener which will route database requests to the active SQL Server node and allow for automatic fail over. Learn about connecting to listeners and handling fail over.
A typical connection string for using an SQL Server AlwaysOn availability group looks like this:
Database Administration and Maintenance
For more information about maintaining your Octopus database, please read our database administrators guide.
Continue with the Octopus installation.