Creating and editing the database connection to your test database
The database connection feature is currently in private beta. If you would like access to this feature contact us
via the Get Support link in the menu bar
Database connections can be created at the organisation level, meaning that the database connections you create can
be shared among the members of your organisation.To create a database connection, you must be an administrator of your organisation and your database must be
accessible - either publicly or via our AWS VPC. If you would like to explore the VPC option please contact us.To create a database connection:
Navigate to the Data Sources page.
Click on the link, View Connections
Click on the button, Create new database connection
Fill out the form with the details of your database connection
The connection details you will need are:
A name for the connection. This must be unique across all the database connections in you organisation
A database type - we currently support Postgresql, MySql, Oracle and MS SQL Server
The hostname for the connection
The port the database is running on
The name of the database
The username used to connect to the database
The password used to connect to the database
Once you have entered all the details for your database connection you can test that they allow a successful connection
to your database by clicking on the Test connection button.If the connection request is unsuccessful, an error message will be displayed.
Once you are happy with your database connection details, click on the Save button to save your connection details.
All database passwords you provide will be encrypted before they are stored to ensure maximum security to your data.
Database connections can be updated after creation. To edit a database connection, you must be an administrator of your
organisation.To edit a connection:
Click on the connection you wish to edit, from the list provided.
Update your database connection.
Click on the save at the bottom of the page.
For security, the password is not returned on the edit screen. You can still update any of the fields and if you
leave the password field blank it will keep the existing password and update all other fields. To update your
password or re-test the connection you will need to enter your password in the field provided.
Database connections can be deleted from your organisation. To delete a database connection, you must be an
administrator of your organisation.To delete a database connection:
Click on the delete icon for the connection you want to remove.
Clicking on the delete icon will open a confirmation dialog. Click the Confirm button to confirm the deletion or
Cancel to close the dialog without deleting the connection.
Clicking Confirm will delete the data source, only if there are no data sources in your organisation that are
currently using it. If the database connection you are trying to delete is in use an error will be displayed, and you
will not be able to delete the connection. You will need to update or delete the data sources that are using the
connection and then try to delete again.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"WireMock Cloud","colors":{"primary":"#234E69","light":"#51AFE9","dark":"#234E69"},"logo":{"light":"https://mintcdn.com/wiremockinc/naAVdBHezo3uA-vt/logo/light.svg?fit=max\u0026auto=format\u0026n=naAVdBHezo3uA-vt\u0026q=85\u0026s=d793ceace787ddb9b53e3a8e828b9635","dark":"https://mintcdn.com/wiremockinc/naAVdBHezo3uA-vt/logo/dark.svg?fit=max\u0026auto=format\u0026n=naAVdBHezo3uA-vt\u0026q=85\u0026s=810f6c4093990be5f0ed074a7b863d80","href":"https://www.wiremock.io"},"favicon":"https://mintcdn.com/wiremockinc/m4BUFp24THf4QtFv/favicon.svg?fit=max\u0026auto=format\u0026n=m4BUFp24THf4QtFv\u0026q=85\u0026s=251fb2a34172427153d66e0068127eb9","api":{"openapi":"api-reference/openapi.yaml"},"navbar":{"links":[{"href":"mailto:support@wiremock.io","label":"Get Support"}],"primary":{"type":"button","label":"Login","href":"https://app.wiremock.cloud"}},"footer":{"socials":{"slack":"https://slack.wiremock.org/","x":"https://x.com/wiremockorg","github":"https://github.com/wiremock","linkedin":"https://www.linkedin.com/company/wiremock"}},"seo":{"organization":{"sameAs":["https://wiremock.org","https://www.wiremock.io","https://slack.wiremock.org/","https://x.com/wiremockorg","https://github.com/wiremock","https://www.linkedin.com/company/wiremock/"]}},"integrations":{"ga4":{"measurementId":"G-QGY5DELWWQ"},"gtm":{"tagId":"GTM-PVHGF5P4"},"intercom":{"appId":"xjme6u4w"}},"contextual":{"options":["download-spec"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Slack community","icon":"slack","href":"https://slack.wiremock.org"},{"anchor":"Blog","icon":"newspaper","href":"https://wiremock.io/blog"},{"anchor":"Install With Cursor","icon":"robot","href":"cursor://anysphere.cursor-deeplink/mcp/install?name=WireMock\u0026config=eyJjb21tYW5kIjoid2lyZW1vY2sgbWNwIn0="},{"anchor":"Self-paced Training","icon":"pen","href":"https://wiremockcloud.learnworlds.com/"},{"anchor":"Change Log","icon":"newspaper","href":"https://changes.wiremock.io/"},{"anchor":"System Status","icon":"bell","href":"https://status.wiremock.io/"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"wiremockinc","hasAudioNarration":false,"actualSubdomain":"wiremockinc","customDomains":["docs.wiremock.io"],"gitSource":{"type":"github","owner":"wiremock-inc","repo":"public-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae2eadfd4f3f1a7afdfbb1c","collectionId":"28818abd-3589-4243-9e15-6eea2ca7a1ac","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae2eadfd4f3f1a7afdfbb1c"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae88db40522e59c033ba84e","clientVersion":"0.0.4074","searchFilterCounts":[{"language":"default","tag":"Documentation","count":120},{"language":"default","tag":"API Reference","count":104},{"language":"default","tag":"How-to Guides","count":77},{"language":"default","tag":"Reference","count":26},{"language":"default","tag":"Settings","count":16},{"language":"default","tag":"Templating","count":15},{"language":"default","tag":"Concepts","count":14},{"language":"default","tag":"Stub Mappings","count":11},{"language":"default","tag":"CLI","count":10},{"language":"default","tag":"Requests","count":10}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"code.language-handlebars .block{display:inline-block}"}],"page":{"pagePath":"data-sources/managing-database-connections","slug":"/data-sources/managing-database-connections","pageMetadata":{"title":"Managing Database Connections","description":"Creating and editing the database connection to your test database","sidebarTitle":"Managing Database Connections","href":"/data-sources/managing-database-connections"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Creating and editing the database connection to your test database\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,OptimizedImage,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(Tip,{children:_jsxs(_components.p,{children:[`The database connection feature is currently in `,_jsx(_components.strong,{children:`private beta`}),`. If you would like access to this feature contact us\nvia the `,_jsx(_components.code,{children:`Get Support`}),` link in the menu bar`]})}),`\n`,_jsx(Heading,{level:`2`,id:`creating-a-database-connection`,children:`Creating a database connection`}),`\n`,_jsx(_components.p,{children:`Database connections can be created at the organisation level, meaning that the database connections you create can\nbe shared among the members of your organisation.`}),`\n`,_jsx(_components.p,{children:`To create a database connection, you must be an administrator of your organisation and your database must be\naccessible - either publicly or via our AWS VPC. If you would like to explore the VPC option please contact us.`}),`\n`,_jsx(_components.p,{children:`To create a database connection:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Navigate to the Data Sources page.`}),`\n`]}),`\n`,_jsx(OptimizedImage,{alt:`Data source menu item`,src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-navigate.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=1b64f35035513087e69a7daa9820af54`,\"data-og-width\":`616`,width:`616`,\"data-og-height\":`328`,height:`328`,\"data-path\":`images/screenshots/data-sources/data-source-navigate.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-navigate.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=9b0f9ddaa52e13307f0059117302edec 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-navigate.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=108c6613e18feeb6de1785fdaea87fd1 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-navigate.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=9e3f30d1d61c676725d2edee51e0b779 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-navigate.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=310c750ae203f8f28936d2db011a4ccb 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-navigate.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=b113fb546ad1914e78323a52b3961308 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-navigate.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=1aeae217392a2c6baf855ebd1283f89c 2500w`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Click on the link, `,_jsx(_components.code,{children:`View Connections`})]}),`\n`]}),`\n`,_jsx(OptimizedImage,{alt:`View database connections link`,src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-view-connections.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=786f16134de79de9f3b9c4145b35d0ca`,\"data-og-width\":`593`,width:`593`,\"data-og-height\":`268`,height:`268`,\"data-path\":`images/screenshots/data-sources/data-source-view-connections.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-view-connections.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=74991a593a1712dd30b74c42530abd47 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-view-connections.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=aaa9a586fff42be1222d565c1dc8ca0f 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-view-connections.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=bccd284de540060267c07bd2cdddda58 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-view-connections.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=966fcbcdfb6d715a53dc96eaf4b6699b 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-view-connections.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=5683b056ee65317cea0be66b02893fae 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/data-source-view-connections.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=b95e6d47c074384affafe3cac7447198 2500w`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Click on the button, `,_jsx(_components.code,{children:`Create new database connection`})]}),`\n`]}),`\n`,_jsx(OptimizedImage,{alt:`Create database connection button`,src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-button.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=7a6b3b4911235370c4484e8b25378e09`,\"data-og-width\":`674`,width:`674`,\"data-og-height\":`262`,height:`262`,\"data-path\":`images/screenshots/data-sources/database-connection-create-button.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-button.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=6c40466cabe37cae4c6d2ddba1ee1929 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-button.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=ba184e891ea101c841f0fe19d6ebad36 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-button.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=28cff7da8e457db718e8c0db5b9347e2 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-button.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=7a6c4195e59f8e4d68a9d99dcdcbd1be 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-button.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=eb8c29e536ce50ded5894fd4add9ef8c 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-button.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=3f08fd400fe6d5fa409a67530bf7ec8d 2500w`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Fill out the form with the details of your database connection`}),`\n`]}),`\n`,_jsx(OptimizedImage,{alt:`Create database connection button`,src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-form.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=71a0aa22d87b60df4bc99178aae0c022`,\"data-og-width\":`1419`,width:`1419`,\"data-og-height\":`890`,height:`890`,\"data-path\":`images/screenshots/data-sources/database-connection-create-form.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-form.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=07d940b2e27f8a2b94ba69ebf53e5fea 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-form.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=140f6a1c2a78bbc0e784f06e47345d5c 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-form.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=258db38d873f2fccefabde2dda3449fe 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-form.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=a566ff6789e4424f9d48d0161c93d6ac 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-form.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=5460585e8261ce12b981faf1f28299de 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-create-form.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=fcf180642f4a676ce680db77a4782eb1 2500w`}),`\n`,_jsx(_components.p,{children:`The connection details you will need are:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A name for the connection. This must be unique across all the database connections in you organisation`}),`\n`,_jsxs(_components.li,{children:[`A database type - we currently support `,_jsx(_components.code,{children:`Postgresql`}),`, `,_jsx(_components.code,{children:`MySql`}),`, `,_jsx(_components.code,{children:`Oracle`}),` and `,_jsx(_components.code,{children:`MS SQL Server`})]}),`\n`,_jsx(_components.li,{children:`The hostname for the connection`}),`\n`,_jsx(_components.li,{children:`The port the database is running on`}),`\n`,_jsx(_components.li,{children:`The name of the database`}),`\n`,_jsx(_components.li,{children:`The username used to connect to the database`}),`\n`,_jsx(_components.li,{children:`The password used to connect to the database`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Once you have entered all the details for your database connection you can test that they allow a successful connection\nto your database by clicking on the `,_jsx(_components.code,{children:`Test connection`}),` button.`]}),`\n`,_jsx(OptimizedImage,{alt:`Database connection test connection success`,src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-success.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=11dae71a0b87093a32476b3779190191`,\"data-og-width\":`809`,width:`809`,\"data-og-height\":`915`,height:`915`,\"data-path\":`images/screenshots/data-sources/database-connection-test-connection-success.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-success.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=f330c9c03b43de80cd4c724a2fbe871c 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-success.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=35434aec8c47286f7cccef585f5fae56 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-success.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=aa2e843a79e47832799fab64e7fa7a99 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-success.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=5bf9637a0f11db02ffe51927e37b3206 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-success.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=56c993e13d64cdfc77fa0e7e80914f77 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-success.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=129d84195bd7436956d40bdae402440b 2500w`}),`\n`,_jsx(_components.p,{children:`If the connection request is unsuccessful, an error message will be displayed.`}),`\n`,_jsx(OptimizedImage,{alt:`Database connection test connection unsuccessful`,src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-unsuccessful.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=0c263e5f245ecad2d1af9dc99b05b650`,\"data-og-width\":`643`,width:`643`,\"data-og-height\":`108`,height:`108`,\"data-path\":`images/screenshots/data-sources/database-connection-test-connection-unsuccessful.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-unsuccessful.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=2c3b2603e254edf0d26db65b35332f13 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-unsuccessful.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=e3a5975bb4d61b251f73a981c624c43a 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-unsuccessful.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=7a7846001d621a4c260b3a557a8869fb 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-unsuccessful.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=a9547930248b76151241019628ca94a8 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-unsuccessful.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=d060b09efc05ec7d9d5b13e6fc5a0c32 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-test-connection-unsuccessful.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=5eeb976971b37c38f1576a2af4711873 2500w`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Once you are happy with your database connection details, click on the `,_jsx(_components.code,{children:`Save`}),` button to save your connection details.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`All database passwords you provide will be encrypted before they are stored to ensure maximum security to your data.`})}),`\n`,_jsxs(_components.p,{children:[`You are now ready to create your first `,_jsx(_components.a,{href:`/data-sources/managing-database-data-sources`,children:`database connection data source`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`editing-a-database-connection`,children:`Editing a database connection`}),`\n`,_jsx(_components.p,{children:`Database connections can be updated after creation. To edit a database connection, you must be an administrator of your\norganisation.`}),`\n`,_jsx(_components.p,{children:`To edit a connection:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Navigate to the `,_jsx(_components.a,{href:`https://app.dev.wiremock.cloud/data-sources/connections`,children:`Database connections page`}),`.`]}),`\n`,_jsx(_components.li,{children:`Click on the connection you wish to edit, from the list provided.`}),`\n`,_jsx(_components.li,{children:`Update your database connection.`}),`\n`,_jsxs(_components.li,{children:[`Click on the `,_jsx(_components.code,{children:`save`}),` at the bottom of the page.`]}),`\n`]}),`\n`,_jsx(OptimizedImage,{alt:`Edit database connection`,src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-edit.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=e79a8ea014373be99ba1d34f1d6afcf9`,\"data-og-width\":`744`,width:`744`,\"data-og-height\":`901`,height:`901`,\"data-path\":`images/screenshots/data-sources/database-connection-edit.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-edit.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=3efcadae040d3c5b0cb2624866b36711 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-edit.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=d0ec512eea437f8ccb426fb16cd9fe97 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-edit.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=49fba6c3e84e9a77c233997ca978fd67 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-edit.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=24512b46541c0a6297bfc029629387ec 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-edit.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=275261374b0ba5985523f14a9ff23420 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-edit.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=bd096e96199ed146cb156df4ac23abce 2500w`}),`\n`,_jsx(_components.p,{children:`For security, the password is not returned on the edit screen. You can still update any of the fields and if you\nleave the password field blank it will keep the existing password and update all other fields. To update your\npassword or re-test the connection you will need to enter your password in the field provided.`}),`\n`,_jsx(Heading,{level:`2`,id:`deleting-a-database-connection`,children:`Deleting a database connection`}),`\n`,_jsx(_components.p,{children:`Database connections can be deleted from your organisation. To delete a database connection, you must be an\nadministrator of your organisation.`}),`\n`,_jsx(_components.p,{children:`To delete a database connection:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Navigate to the `,_jsx(_components.a,{href:`https://app.dev.wiremock.cloud/data-sources/connections`,children:`Database connections page`}),`.`]}),`\n`,_jsx(_components.li,{children:`Click on the delete icon for the connection you want to remove.`}),`\n`]}),`\n`,_jsx(`p`,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=fda965e9abb88c097cdac3becebb6850`,alt:`Delete a database connection`,title:`Delete a database connection`,\"data-og-width\":`861`,width:`861`,\"data-og-height\":`377`,height:`377`,\"data-path\":`images/screenshots/data-sources/database-connection-delete.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=ba57c8e5107d644d335bf86a351820f1 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=aafb6e8a1883173bafa09fe820ad0894 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=59a14066bf66e8978a4b5376c24db0c4 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=e08173d8cadf9ea8b5b0087c38852eaf 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=d67535bffb5d510effa753e498b53e1c 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=03a1c0687ee21c3c7f6ad7357e825a1d 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Clicking on the delete icon will open a confirmation dialog. Click the `,_jsx(_components.code,{children:`Confirm`}),` button to confirm the deletion or\n`,_jsx(_components.code,{children:`Cancel`}),` to close the dialog without deleting the connection.`]}),`\n`,_jsx(`p`,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=26b5a848321f5a84862d894f18f4a33c`,alt:`Delete a database connection confirmation`,title:`Delete a database connection confirmation`,\"data-og-width\":`663`,width:`663`,\"data-og-height\":`220`,height:`220`,\"data-path\":`images/screenshots/data-sources/database-connection-delete-confirm.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=655201ad95242fb9de9da8b3991e5c85 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=04d4dd921e5b1c0a6535f119ec9338d1 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=1506e6652e2aad768301f21b2b9634da 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=4ba1d49eb2f83729000c5d6b2a213145 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=711743f2b546e207bab0dd37d4f434a9 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=2f22987fb63308aede9d71aae76ac42a 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Clicking `,_jsx(_components.code,{children:`Confirm`}),` will delete the data source, only if there are no data sources in your organisation that are\ncurrently using it. If the database connection you are trying to delete is in use an error will be displayed, and you\nwill not be able to delete the connection. You will need to update or delete the data sources that are using the\nconnection and then try to delete again.`]}),`\n`,_jsx(`p`,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm-error.png?fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=3eec8fb63db38e57568b79b863995705`,alt:`Delete a database connection confirmation error`,title:`Delete a database connection confirmation error`,\"data-og-width\":`667`,width:`667`,\"data-og-height\":`355`,height:`355`,\"data-path\":`images/screenshots/data-sources/database-connection-delete-confirm-error.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm-error.png?w=280\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=a7d7757a97c28bd1d860575517b9a7b8 280w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm-error.png?w=560\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=cbbda77dad8f14a43ac11f417503e0a6 560w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm-error.png?w=840\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=d2d6d104415063ddf60027cf08128f65 840w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm-error.png?w=1100\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=d489702c1d8c40dc821ed3f34c128303 1100w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm-error.png?w=1650\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=1f9da11b0c57b3f79113dac53fa690fc 1650w, https://mintcdn.com/wiremockinc/TMB5bBMjkV05sCok/images/screenshots/data-sources/database-connection-delete-confirm-error.png?w=2500\u0026fit=max\u0026auto=format\u0026n=TMB5bBMjkV05sCok\u0026q=85\u0026s=e2a1f6acf58d9e93c279f216686add37 2500w`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Managing Database Connections","description":"Creating and editing the database connection to your test database","sidebarTitle":"Managing Database Connections","href":"/data-sources/managing-database-connections"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Creating a database connection","slug":"creating-a-database-connection","depth":2,"children":[]},{"title":"Editing a database connection","slug":"editing-a-database-connection","depth":2,"children":[]},{"title":"Deleting a database connection","slug":"deleting-a-database-connection","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/wiremockinc/029d9f60e6edd2c0/scripts/generate-llms-txt.js"],"subdomain":"wiremockinc","siteName":"WireMock Cloud","title":"Managing Database Connections - WireMock Cloud","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-26T11:00:12.235Z","originalFileLocation":"data-sources/managing-database-connections.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Creating and editing the database connection to your test database\">\u003cmeta data-mint-head name=\"application-name\" content=\"WireMock Cloud\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Managing Database Connections - WireMock Cloud\">\u003cmeta data-mint-head property=\"og:description\" content=\"Creating and editing the database connection to your test database\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"WireMock Cloud\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.wiremock.io/data-sources/managing-database-connections\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://wiremockinc.mintlify.site/_mintlify/api/og/v2?division=Data+Sources\u0026amp;title=Managing+Database+Connections\u0026amp;description=Creating+and+editing+the+database+connection+to+your+test+database\u0026amp;theme=bd6b655a49d3bdf06e9a283b\u0026amp;signature=e1547cfdb9801fce19f5e387dda23cc1561e7a1259675c40e8e86b8b0ebd269e\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Managing Database Connections - WireMock Cloud\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Creating and editing the database connection to your test database\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://wiremockinc.mintlify.site/_mintlify/api/og/v2?division=Data+Sources\u0026amp;title=Managing+Database+Connections\u0026amp;description=Creating+and+editing+the+database+connection+to+your+test+database\u0026amp;theme=bd6b655a49d3bdf06e9a283b\u0026amp;signature=e1547cfdb9801fce19f5e387dda23cc1561e7a1259675c40e8e86b8b0ebd269e\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/wiremockinc/CECzM-LCKYF2F3LU/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"WireMock Cloud\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#234E69\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.wiremock.io/data-sources/managing-database-connections\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/data-sources/managing-database-connections.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.wiremock.io/#organization\",\"name\":\"WireMock Cloud\",\"url\":\"https://docs.wiremock.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/wiremockinc/naAVdBHezo3uA-vt/logo/light.svg?fit=max\u0026auto=format\u0026n=naAVdBHezo3uA-vt\u0026q=85\u0026s=d793ceace787ddb9b53e3a8e828b9635\"},\"sameAs\":[\"https://wiremock.org\",\"https://www.wiremock.io\",\"https://slack.wiremock.org/\",\"https://x.com/wiremockorg\",\"https://github.com/wiremock\",\"https://www.linkedin.com/company/wiremock/\"]},{\"@type\":\"WebSite\",\"@id\":\"https://docs.wiremock.io#website\",\"name\":\"WireMock Cloud\",\"url\":\"https://docs.wiremock.io\",\"publisher\":{\"@id\":\"https://docs.wiremock.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.wiremock.io/data-sources/managing-database-connections#webpage\",\"url\":\"https://docs.wiremock.io/data-sources/managing-database-connections\",\"name\":\"Managing Database Connections\",\"description\":\"Creating and editing the database connection to your test database\",\"dateModified\":\"2026-01-26T11:00:12.235Z\",\"isPartOf\":{\"@id\":\"https://docs.wiremock.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.wiremock.io/data-sources/managing-database-connections#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.wiremock.io/data-sources/managing-database-connections#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"How-to Guides\",\"item\":\"https://docs.wiremock.io/soap-stubbing\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Data Sources\",\"item\":\"https://docs.wiremock.io/data-sources/overview\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Managing Database Connections\",\"item\":\"https://docs.wiremock.io/data-sources/managing-database-connections\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.wiremock.io/data-sources/managing-database-connections#article\",\"headline\":\"Managing Database Connections\",\"name\":\"Managing Database Connections\",\"description\":\"Creating and editing the database connection to your test database\",\"url\":\"https://docs.wiremock.io/data-sources/managing-database-connections\",\"mainEntityOfPage\":{\"@id\":\"https://docs.wiremock.io/data-sources/managing-database-connections#webpage\"},\"dateModified\":\"2026-01-26T11:00:12.235Z\",\"publisher\":{\"@id\":\"https://docs.wiremock.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.wiremock.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"WireMock Cloud\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"WireMock Cloud","nav":{"global":{"anchors":[{"anchor":"Slack community","icon":"slack","href":"https://slack.wiremock.org"},{"anchor":"Blog","icon":"newspaper","href":"https://wiremock.io/blog"},{"anchor":"Install With Cursor","icon":"robot","href":"cursor://anysphere.cursor-deeplink/mcp/install?name=WireMock\u0026config=eyJjb21tYW5kIjoid2lyZW1vY2sgbWNwIn0="},{"anchor":"Self-paced Training","icon":"pen","href":"https://wiremockcloud.learnworlds.com/"},{"anchor":"Change Log","icon":"newspaper","href":"https://changes.wiremock.io/"},{"anchor":"System Status","icon":"bell","href":"https://status.wiremock.io/"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Concepts","pages":[{"title":"Overview of API simulation with WireMock Cloud","href":"/overview"},{"title":"Stubbing","href":"/concepts/stubbing"},{"title":"Templating","href":"/concepts/templating"},{"group":"Stateful Simulation","pages":[{"title":"Stateful Mocking and Scenarios","sidebarTitle":"Simple Scenarios","href":"/dynamic-state/stateful-scenarios"},{"title":"Dynamic State Basics","sidebarTitle":"Advanced Dynamic State","href":"/dynamic-state/overview"}]},{"title":"Deployment","href":"/concepts/deployment"},{"title":"WireMock Runner","href":"/concepts/runner"},{"title":"Profiles","href":"/concepts/profiles"},{"title":"WireMock Cloud vs other API mocking tools","sidebarTitle":"Comparison","href":"/concepts/comparison"},{"title":"API Security Overview","sidebarTitle":"Security","href":"/security/security"},{"group":"Audit","pages":[{"title":"Audit Events Overview","sidebarTitle":"Overview","href":"/audit-events/overview"},{"title":"Audit Event Destinations - Plan Limits","sidebarTitle":"Plan Limits","href":"/audit-events/plan-limits"}]},{"group":"Versioning","pages":[{"title":"Versioning","sidebarTitle":"Overview","href":"/versioning/overview"},{"title":"Versioning - Plan Limits","sidebarTitle":"Plan Limits","href":"/versioning/plan-limits"}]},{"title":"WireMock Cloud AI","sidebarTitle":"AI and MCP","href":"/ai-mcp/ai-101"}]},{"group":"Tutorials","pages":[{"title":"Exploratory Testing With Spring Boot","sidebarTitle":"Exploratory Testing With Spring Boot","href":"/samples/exploratory-testing-tutorial"},{"title":"Automated Testing with Java","sidebarTitle":"Automated Testing With Java","href":"/samples/automated-testing-with-java"},{"title":"How to build a mock REST API [Tutorial]","sidebarTitle":"Rest API Example","href":"/samples/mock-rest-api"}]},{"group":"How-to Guides","pages":[{"group":"Simulating APIs","expanded":false,"pages":[{"title":"Simulating SOAP services","sidebarTitle":"SOAP","href":"/soap-stubbing"},{"title":"Simulating gRPC services","sidebarTitle":"gRPC","href":"/grpc/overview"},{"title":"Simulating GraphQL APIs","sidebarTitle":"GraphQL","href":"/graphql/overview"},{"title":"Simulating federated GraphQL APIs","sidebarTitle":"Federated GraphQL","href":"/graphql/federation"}]},{"group":"Stubbing","expanded":false,"pages":[{"title":"Stubbing Basics","sidebarTitle":"Overview","href":"/stubbing"},{"title":"Advanced Stubbing","sidebarTitle":"Advanced Stubbing","href":"/advanced-stubbing"},{"title":"Dynamic Responses with Templates","sidebarTitle":"Dynamic Responses","href":"/response-templating/basics"},{"title":"Using a JWT from the Request in a Response Template","sidebarTitle":"Using JWT Claims from a Request","href":"/response-templating/using-jwt-claims-from-request"},{"title":"Serving a Default Response","sidebarTitle":"Default Responses","href":"/default-responses"},{"title":"How to Configure Webhooks and Callbacks","sidebarTitle":"Webhooks and Callbacks","href":"/webhooks"},{"title":"Proxying","sidebarTitle":"Proxying Requests","href":"/proxying"}]},{"group":"Performance","expanded":false,"pages":[{"title":"Response Delays","sidebarTitle":"Response Delays","href":"/delays"},{"title":"User Configurable Rate Limits","sidebarTitle":"Configuring Rate Limits","href":"/user-rate-limits"}]},{"group":"Faults and Chaos","expanded":false,"pages":[{"title":"Simulating Faults","sidebarTitle":"Simulating Faults","href":"/simulating-faults"},{"title":"Chaos settings - Basics","sidebarTitle":"Chaos Testing","href":"/chaos"}]},{"group":"Data Sources","pages":[{"title":"Data Sources - Using External Test Data","sidebarTitle":"Data Sources Overview","href":"/data-sources/overview"},{"title":"Creating \u0026 Editing CSV Data Sources","sidebarTitle":"Managing Data Sources - CSV","href":"/data-sources/managing-csv-data-sources"},{"title":"Creating \u0026 Editing Database Data Sources","sidebarTitle":"Managing Data Sources - Database","href":"/data-sources/managing-database-data-sources"},{"title":"Deleting Data Sources","description":"How to remove data sources from your account","sidebarTitle":"Deleting Data Sources","href":"/data-sources/deleting-data-sources"},{"title":"Managing Database Connections","sidebarTitle":"Managing Database Connections","href":"/data-sources/managing-database-connections"},{"title":"Sharing Data Sources","description":"Sharing your data source with other members within your organisation.","sidebarTitle":"Sharing Data Sources","href":"/data-sources/sharing-data-sources"},{"title":"Data Sources - Plan Limits","sidebarTitle":"Plan Limits","href":"/data-sources/plan-limits"}]},{"group":"Recording","expanded":false,"pages":[{"title":"Recording via the Cloud","href":"/recording-stubs"},{"title":"Recording via the CLI","href":"/cli/recording"},{"title":"Multi-domain recording using the WireMock CLI","sidebarTitle":"Multi domain recording with the CLI","href":"/cli/multi-domain-recording"},{"title":"Non-interactive Recording Sessions","sidebarTitle":"Non-Interactive Recording","href":"/cli/non-interactive-recording"}]},{"group":"OpenAPI","pages":[{"title":"OpenAPI Mocking and Prototyping","sidebarTitle":"Working With OpenAPI","href":"/openAPI/openapi"},{"title":"Import \u0026 Export - Swagger and OpenAPI","sidebarTitle":"Import OpenAPI","href":"/openAPI/swagger"},{"title":"OpenAPI Git Integration","sidebarTitle":"Syncing With Git","href":"/openAPI/openapi-git-integration"},{"title":"OpenAPI Validation","sidebarTitle":"OpenAPI Validation","href":"/openAPI/openapi-validation"}]},{"group":"Stateful Mocking","pages":[{"title":"Stateful Mocking and Scenarios","sidebarTitle":"Simple Scenarios","href":"/dynamic-state/stateful-scenarios"},{"title":"Dynamic State Shopping Basket Example","sidebarTitle":"Shopping Cart Example","href":"/dynamic-state/basket-example"},{"title":"Dynamic State - Plan Limits","sidebarTitle":"Plan Limits","href":"/dynamic-state/plan-limits"},{"title":"Create Stateful Endpoint Set","sidebarTitle":"Create Stateful Set","href":"/dynamic-state/create-stateful-set"}]},{"group":"Importing And Exporting","pages":[{"title":"Import \u0026 Export - Overview","sidebarTitle":"Basics","href":"/import-export/overview"},{"title":"Import \u0026 Export - WireMock","sidebarTitle":"Importing via WireMock OSS","href":"/import-export/wiremock"},{"title":"Import \u0026 Export - Postman","sidebarTitle":"Importing via Postman","href":"/import-export/postman"},{"title":"Import \u0026 Export - Via the API","sidebarTitle":"Importing via API","href":"/import-export/api"},{"title":"Importing Via HAR","href":"/import-export/har"},{"title":"Import \u0026 Export - Mountebank","sidebarTitle":"Importing via Mountebank","href":"/import-export/mountebank"}]},{"group":"CLI","pages":[{"title":"WireMock CLI","sidebarTitle":"Installation and basic usage","href":"/cli/overview"},{"title":"Configuring the WireMock CLI","sidebarTitle":"Configuring the CLI","href":"/cli/config"},{"title":"Managing Mock APIs with the CLI","sidebarTitle":"Managing Mock APIs","href":"/cli/mock-apis"},{"title":"Running Mock APIs Locally","href":"/cli/local-playback"},{"title":"Pushing and Pulling Documents","href":"/cli/push-pull"},{"title":"Pushing and Pulling Mock API","href":"/cli/push-pull-mock-api"},{"title":"Importing into WireMock Cloud","href":"/cli/import"},{"title":"Managing Environments with the CLI","sidebarTitle":"Managing Environments","href":"/cli/environments"},{"title":"Syncing API Templates with the CLI","sidebarTitle":"API Templates","href":"/cli/templates"},{"title":"Managing Data Sources with the CLI","sidebarTitle":"Data Sources","href":"/cli/data-sources"}]},{"group":"Runner","pages":[{"title":"WireMock Runner","sidebarTitle":"Installation and basic usage","href":"/runner/overview"},{"title":"Record Many Mode via the WireMock Runner","sidebarTitle":"Record Many Mode","href":"/runner/record-many"},{"title":"Serve Mode via the WireMock Runner","sidebarTitle":"Serve Mode","href":"/runner/serve"},{"title":"WireMock Runner Serve Mode Extensions","sidebarTitle":"Serve Mode Extensions","href":"/runner/serve-mode-extensions"},{"title":"Running the WireMock Runner on Kubernetes","sidebarTitle":"Running on Kubernetes","href":"/runner/running-on-kubernetes"},{"title":"Recording from Within Kubernetes","sidebarTitle":"Recording on Kubernetes","href":"/runner/recording-multiple-apis-on-kubernetes"},{"title":"Promoting Mock APIs with Git and CI/CD","sidebarTitle":"Git and CI/CD Promotion","href":"/runner/promoting-apis-with-git-and-ci"}]},{"group":"Security","pages":[{"title":"Teams and Collaboration","href":"/security/teams-and-collaboration"},{"title":"The SAML Identity Provider Mock","sidebarTitle":"SAML IDP","href":"/security/saml-idp-mock"},{"title":"Key management","sidebarTitle":"Key Management","href":"/security/key-management"}]},{"group":"Audit","pages":[{"title":"Working with Audit Event JSON","sidebarTitle":"Working With Audit Events","href":"/audit-events/working-with-audit-events"}]},{"group":"AI/MCP","pages":[{"title":"WireMock Cloud agent skills","href":"/ai-mcp/agent-skills"},{"title":"Installing the agent skills plugin","href":"/ai-mcp/installation"},{"title":"Installing the local agent skills plugin","href":"/ai-mcp/local-installation"},{"title":"Installing the WireMock Cloud MCP server directly","href":"/ai-mcp/mcp-installation"},{"title":"HTTP Request Authentication","href":"/ai-mcp/http-request-authentication"}]},{"group":"WireMock Cloud API","pages":[{"title":"Getting Started with the API","href":"/api-getting-started"},{"title":"Authentication","href":"/authentication"},{"title":"WireMock API Device Authorization Flow","href":"/device-authorization-flow"},{"title":"Product Usage Data","href":"/usage"},{"title":"Organisation Info and Members","href":"/organisation-info-and-members"},{"title":"Managing Teams and Members","href":"/teams-and-members"},{"title":"User Info","href":"/user-info"},{"title":"Mock APIs","href":"/mock-apis"}]},{"group":"IDE Integrations","pages":[{"group":"JetBrains IDEs","pages":[{"title":"Integration with WireMock Cloud","sidebarTitle":"WireMock Cloud integration","href":"/ide-integrations/jetbrains/wiremock-cloud-integration"},{"title":"Support for WireMock OSS","sidebarTitle":"OSS Support","href":"/ide-integrations/jetbrains/oss-features"},{"title":"Integration with Claude Code","sidebarTitle":"Claude Code integration","href":"/ide-integrations/jetbrains/claude-code-integration"}]}]}]},{"group":"Reference","pages":[{"title":"Keyboard shortcuts","href":"/keyboard-shortcuts"},{"group":"Request Matching","pages":[{"title":"Request Matching - Overview of Matcher Types","sidebarTitle":"Matcher Types","href":"/request-matching/matcher-types"},{"title":"Request Matching - Matching JSON requests","sidebarTitle":"Matching JSON","href":"/request-matching/json"},{"title":"Request Matching - Matching URLs","href":"/request-matching/url"},{"title":"Request Matching - Matching XML bodies","sidebarTitle":"Matching XML","href":"/request-matching/xml"},{"title":"Request Matching – Expression Matcher","sidebarTitle":"Expression Matcher","href":"/request-matching/expression-matcher"}]},{"group":"Templating","pages":[{"title":"Response Templating - Helper Reference","sidebarTitle":"Helper Reference","href":"/response-templating/helper-reference"},{"title":"Request Model Reference","sidebarTitle":"Request Model","href":"/response-templating/request-model"},{"title":"Response Templating - Conditional Logic and Iteration","sidebarTitle":"Conditional Logic","href":"/response-templating/conditional-logic-and-iteration"},{"title":"Response Templating - Dates and Times","sidebarTitle":"Date And Times","href":"/response-templating/dates-and-times"},{"title":"Response Templating - Working with JSON","sidebarTitle":"JSON And JSONPath","href":"/response-templating/json"},{"title":"Response Templating - JSON Web Tokens (JWT)","sidebarTitle":"JWT Web Tokens","href":"/response-templating/jwt"},{"title":"Response Templating - Cryptographic Helpers","sidebarTitle":"Cryptographic Helpers","href":"/response-templating/cryptographic-helpers"},{"title":"Response Templating - Miscellaneous Helpers","sidebarTitle":"Miscellaneous Helpers","href":"/response-templating/misc-helpers"},{"title":"Response Templating - Naughty Strings","sidebarTitle":"Naughty Strings","href":"/response-templating/naughty-strings"},{"title":"Response Templating - Number Helpers","sidebarTitle":"Number Helpers","href":"/response-templating/number-helpers"},{"title":"Response Templating - Random Faker","sidebarTitle":"Generate Test Data","href":"/response-templating/random-faker"},{"title":"Response Templating - Random Values","sidebarTitle":"Generate Random Values","href":"/response-templating/random-values"},{"title":"Response Templating - String Encodings","sidebarTitle":"String Encodings","href":"/response-templating/string-encodings"},{"title":"Response Templating - String Helpers","sidebarTitle":"String Helpers","href":"/response-templating/string-helpers"},{"title":"Response Templating - Working with XML","sidebarTitle":"XML","href":"/response-templating/xml"}]},{"group":"AI/MCP","expanded":false,"pages":[{"title":"MCP Tools","href":"/ai-mcp/mcp-tools"}]},{"group":"Runner / CLI","expanded":false,"pages":[{"title":"CLI Command Reference","sidebarTitle":"Command reference","href":"/cli/command-reference"},{"title":"wiremock.yaml Configuration Reference","sidebarTitle":"wiremock.yaml Reference","href":"/cli/wiremock-yaml-reference"},{"title":"Import \u0026 Recording Configuration Reference","href":"/cli/recording-configuration"},{"title":"Runner environment variables","sidebarTitle":"Environment variables","href":"/runner/environment-variables"}]}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"basePath":"","title":"Managing Database Connections - WireMock Cloud","buildId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","deploymentId":"dpl_BLQvU86QFwq3AhPofSTw6q8dGWKm","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-CLQdF-Ar.js","lightbox-handle-r17bVUz3.js"]}