Stash is now known as Bitbucket Server.
See the

Unknown macro: {spacejump}

of this page, or visit the Bitbucket Server documentation home page.

 

Currently, Stash supports connecting to the following external databases:

  • PostgreSQL

Stash does not currently support migration between database systems. If you would like to connect the application to an external database, you must do so before starting Stash for the first time. Doing otherwise will result in data loss.

In your Stash Home directory, create the stash-config.properties file if it does not already exist. The following lines should be added to connect to an external database, in this case PostgreSQL:

jdbc.url=jdbc:postgresql://localhost:5432/stash
jdbc.user=stash_user
jdbc.password=s3cr3t
jdbc.driver=org.postgresql.Driver
PropertyDescription
jdbc.urlThis is the JDBC url that Stash will use to connect to the database. This should include the driver subprotocol (e.g., postgresql:), the hostname, port and database that you will connect to. This string may vary depending on the database you are connecting to. Please seek specific examples for other databases with your database provider.
jdbc.userThis is the user that Stash will connect to the database with. The user will need to be able to create and drop tables and indexes, as well as read and write operations on the entire database schema defined in jdbc.url.
jdbc.passwordThe password that the user defined by jdbc.user will connect with.
jdbc.driverThe JDBC driver class that should be used by Stash to connect to the database.

If none of the above values are specified in stash-config.properties, then a provided HSQL database will be used.

  • No labels