Tomcat and external MySQL datasource example

Connect Bamboo to a MySQL database

On this page

Still need help?

The Atlassian Community is here for you.

Ask the community

Add the DataSource Resource tag inside the Context tags of your context descriptor in the server.xml file located under <bamboo-installation-directory>/conf:


<Context .... >
<Resource name="jdbc/bamboo" auth="Container" type="javax.sql.DataSource"
        username="yourusername"
         password="yourpassword"
         driverClassName="com.mysql.jdbc.Driver"
         url="jdbc:mysql://localhost:3306/bamboo?autoReconnect=true"
         maxActive="100"
         maxIdle="7"
         validationQuery="Select 1" />
</Context>
Last modified on Jan 30, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.