How a Mythex project gets a database, how to download a backup of it, connect to it from any Postgres tool, reset its password, and how sleeping and billing work.
Mythex can give a project an isolated Postgres database so your app can save real data. The data is yours: you can download it or connect to it from other tools at any time.
A database is available on every plan. Free can use a database in Preview and on LIVE apps; published DB usage spends from monthly Cloud credits (Free 10/mo; Pro, Business and Enterprise a fifth of their monthly credits, and they fall through to monthly credits or top-ups once those run out). Abandoned Free Preview infra may be cleaned up after long inactivity if the project is not LIVE.
Connection details injected into the workspace and published apps
Ask Mythex to create tables, save form submissions, or load data for you
It sleeps when idle — after about a minute on Free, 5 minutes on Pro — and wakes on the next request; published usage is charged for the time it was actually awake, at the size it ran at (Database size)
On Free a database grows up to half a compute unit; on Pro up to 2
In Settings → Usage, a Pro project’s database can be set to:
Sleep when idle (the default) — it sleeps after a few idle minutes and wakes in a moment on the next visit. You pay only while it’s awake.
Always on — it never sleeps, so there is no wake-up pause on the first visit. It costs every hour of the month; the setting shows the monthly floor in credits before you turn it on (busy apps grow past the smallest size and cost more).
Only the project owner can change it. If the owner leaves Pro, the database goes back to sleeping when idle.
Download backup gives you a full copy of your app’s data as one .sql.gz file: every table, row and index. It restores into any Postgres database, so you can keep it as a backup or move your data somewhere else:
gunzip -c my-app-database.sql.gz | psql "postgresql://…your other database…"
Available on Free and Pro, and it works even when your Cloud credits are empty.
It takes a few seconds for a small app and longer for a large one; the download starts by itself when it’s ready. You can leave the page open while it works.
A backup reads the whole database once, which counts as database time like any other use.
On Pro, Show connection string gives you the database’s full address. Paste it into TablePlus, DBeaver, psql, pg_dump or another host’s import screen to look at your data, edit it, export it or move it.
The connection string is a full read-and-write login. Anyone who has it can read and change your app’s data — including your live app’s, because the preview and the published app share one database. Keep it out of chats, screenshots and public code.
If a connection string was shared somewhere it shouldn’t be, choose Reset password under it. The database gets a new password and the old connection string stops working right away. Mythex hands the new one to your preview and your live app for you; the live app restarts to pick it up, which takes a few seconds. Anything else you connected with the old string (a desktop tool, another server) needs the new one.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Mythex Docs","description":"Build apps and websites by chatting with AI. Workspace, preview, publish, billing, and prompting.","colors":{"primary":"#FB7185","light":"#FDA4AF","dark":"#E11D48"},"logo":{"light":"https://mintcdn.com/mythex/MYcuk9m9jCDpCwdy/logo-light.svg?fit=max\u0026auto=format\u0026n=MYcuk9m9jCDpCwdy\u0026q=85\u0026s=746dd9cba067524d2d5c1eba821e3166","dark":"https://mintcdn.com/mythex/MYcuk9m9jCDpCwdy/logo-dark.svg?fit=max\u0026auto=format\u0026n=MYcuk9m9jCDpCwdy\u0026q=85\u0026s=79061c8e608af2e06ed9ddbec4869b9b","href":"https://mythex.ai"},"favicon":"https://mintcdn.com/mythex/MYcuk9m9jCDpCwdy/logo-mark.svg?fit=max\u0026auto=format\u0026n=MYcuk9m9jCDpCwdy\u0026q=85\u0026s=33c1dd33ce30ac6118cc976004aa6858","navbar":{"links":[{"href":"https://mythex.ai","label":"App"},{"href":"https://docs.mythex.ai/introduction/support","label":"Support"}],"primary":{"type":"button","label":"Open Mythex","href":"https://mythex.ai/signup"}},"footer":{"socials":{"x":"https://x.com/mythexai","linkedin":"https://www.linkedin.com/company/mythexai","youtube":"https://www.youtube.com/@mythex-ai"}},"seo":{"metatags":{"og:image":"https://mythex.ai/og.png"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"mythex","hasAudioNarration":false,"actualSubdomain":"mythex","customDomains":["docs.mythex.ai"],"gitSource":{"type":"github","owner":"ahmadzraiq","repo":"mythex","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ade486362312816aa7ec262","collectionId":"0b7f882b-3f68-4acb-a987-88a02b5d2c48","liveDeploymentHistoryId":"6ade486362312816aa7ec262","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ade486362312816aa7ec262","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Workspace","count":22},{"language":"default","tag":"Use cases","count":13},{"language":"default","tag":"Recipes","count":12},{"language":"default","tag":"Compare","count":10},{"language":"default","tag":"Account","count":8},{"language":"default","tag":"Prompting","count":8},{"language":"default","tag":"Chat \u0026 agent","count":7},{"language":"default","tag":"Getting started","count":7},{"language":"default","tag":"Introduction","count":7},{"language":"default","tag":"Publish","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@mythex.ai"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"editor-v7-file-tree","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":"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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"byok-sep-25","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":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":".nav-logo{height:2.25rem}"}],"page":{"pagePath":"features/database","slug":"/features/database","pageMetadata":{"title":"Database","description":"How a Mythex project gets a database, how to download a backup of it, connect to it from any Postgres tool, reset its password, and how sleeping and billing work.","href":"/features/database"},"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: \"How a Mythex project gets a database, how to download a backup of it, connect to it from any Postgres tool, reset its password, and how sleeping and billing work.\"\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`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,OptimizedImage,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`1`,id:`database`,children:`Database`}),`\n`,_jsxs(_components.p,{children:[`Mythex can give a project an isolated `,_jsx(_components.strong,{children:`Postgres database`}),` so your app can save real data. The data is yours: you can download it or connect to it from other tools at any time.`]}),`\n`,_jsx(Heading,{level:`2`,id:`availability`,children:`Availability`}),`\n`,_jsxs(_components.p,{children:[`A database is available on every plan. Free can use a database in Preview and on LIVE apps; published DB usage spends from monthly `,_jsx(_components.strong,{children:`Cloud credits`}),` (Free `,_jsx(_components.strong,{children:`10/mo`}),`; Pro, Business and Enterprise a fifth of their monthly credits, and they fall through to monthly credits or top-ups once those run out). Abandoned Free Preview infra may be cleaned up after long inactivity if the project is not LIVE.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-get`,children:`What you get`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`A dedicated database for that project`}),`\n`,_jsx(_components.li,{children:`Connection details injected into the workspace and published apps`}),`\n`,_jsx(_components.li,{children:`Ask Mythex to create tables, save form submissions, or load data for you`}),`\n`,_jsxs(_components.li,{children:[`It sleeps when idle — after about a minute on Free, 5 minutes on Pro — and wakes on the next request; published usage is charged for the time it was actually awake, at the size it ran at (`,_jsx(_components.a,{href:`/publish/hosting-limits#database-size`,children:`Database size`}),`)`]}),`\n`,_jsx(_components.li,{children:`On Free a database grows up to half a compute unit; on Pro up to 2`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`sleep-when-idle-or-always-on-pro`,children:`Sleep when idle, or always on (Pro)`}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Settings → Usage`}),`, a Pro project’s database can be set to:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Sleep when idle`}),` (the default) — it sleeps after a few idle minutes and wakes in a moment on the next visit. You pay only while it’s awake.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Always on`}),` — it never sleeps, so there is no wake-up pause on the first visit. It costs every hour of the month; the setting shows the monthly floor in credits before you turn it on (busy apps grow past the smallest size and cost more).`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`Only the project owner can change it. If the owner leaves Pro, the database goes back to sleeping when idle.`}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-enable`,children:`How to enable`}),`\n`,_jsxs(_components.p,{children:[`You usually do `,_jsx(_components.strong,{children:`not`}),` click a separate “attach” button. Either:`]}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsx(_components.li,{children:`Ask in chat: “save waitlist emails to a database”`}),`\n`,_jsxs(_components.li,{children:[`Or use the `,_jsx(_components.strong,{children:_jsx(_components.code,{children:`/database`})}),` Command in the workspace`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Mythex adds it when the app needs it. Until then, `,_jsx(_components.strong,{children:`Project settings → Database`}),` says `,_jsx(_components.em,{children:`No database yet`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`your-data`,children:`Your data`}),`\n`,_jsxs(_components.p,{children:[`Open the project name → `,_jsx(_components.strong,{children:`Settings → Database`}),` (on a phone, tap the project name and choose `,_jsx(_components.strong,{children:`Database`}),`).`]}),`\n`,_jsx(OptimizedImage,{src:`https://mintcdn.com/mythex/ZD5XvTzEz-4Thu_t/images/project-database.png?fit=max\u0026auto=format\u0026n=ZD5XvTzEz-4Thu_t\u0026q=85\u0026s=d9e10069d0d7ca4f2f782f2729b2f3b1`,alt:`Project settings → Database`,\"data-og-width\":`2048`,width:`2048`,\"data-og-height\":`1440`,height:`1440`,\"data-path\":`images/project-database.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/mythex/ZD5XvTzEz-4Thu_t/images/project-database.png?w=280\u0026fit=max\u0026auto=format\u0026n=ZD5XvTzEz-4Thu_t\u0026q=85\u0026s=727e5ac3d44d9ac7a3af932d20af4dcf 280w, https://mintcdn.com/mythex/ZD5XvTzEz-4Thu_t/images/project-database.png?w=560\u0026fit=max\u0026auto=format\u0026n=ZD5XvTzEz-4Thu_t\u0026q=85\u0026s=3cd71f6775e4a6ecda5386d972eabaff 560w, https://mintcdn.com/mythex/ZD5XvTzEz-4Thu_t/images/project-database.png?w=840\u0026fit=max\u0026auto=format\u0026n=ZD5XvTzEz-4Thu_t\u0026q=85\u0026s=1af0f47d43b528b9c809e6ba462ca5e1 840w, https://mintcdn.com/mythex/ZD5XvTzEz-4Thu_t/images/project-database.png?w=1100\u0026fit=max\u0026auto=format\u0026n=ZD5XvTzEz-4Thu_t\u0026q=85\u0026s=5b4a324462d99526616ad5b4b6132b42 1100w, https://mintcdn.com/mythex/ZD5XvTzEz-4Thu_t/images/project-database.png?w=1650\u0026fit=max\u0026auto=format\u0026n=ZD5XvTzEz-4Thu_t\u0026q=85\u0026s=1b4a85431cc875672f62b50cfc1ee595 1650w, https://mintcdn.com/mythex/ZD5XvTzEz-4Thu_t/images/project-database.png?w=2500\u0026fit=max\u0026auto=format\u0026n=ZD5XvTzEz-4Thu_t\u0026q=85\u0026s=9430b2cdf1259f25ff04729981ec3580 2500w`}),`\n`,_jsx(Heading,{level:`3`,id:`download-a-backup`,children:`Download a backup`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Download backup`}),` gives you a full copy of your app’s data as one `,_jsx(_components.code,{children:`.sql.gz`}),` file: every table, row and index. It restores into any Postgres database, so you can keep it as a backup or move your data somewhere else:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`gunzip`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` my-app-database.sql.gz`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` psql`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"postgresql://…your other database…\"`})]}),`\n`]})})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Available on `,_jsx(_components.strong,{children:`Free and Pro`}),`, and it works even when your Cloud credits are empty.`]}),`\n`,_jsx(_components.li,{children:`It takes a few seconds for a small app and longer for a large one; the download starts by itself when it’s ready. You can leave the page open while it works.`}),`\n`,_jsx(_components.li,{children:`A backup reads the whole database once, which counts as database time like any other use.`}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`connect-from-another-tool`,children:`Connect from another tool`}),`\n`,_jsxs(_components.p,{children:[`On `,_jsx(_components.strong,{children:`Pro`}),`, `,_jsx(_components.strong,{children:`Show connection string`}),` gives you the database’s full address. Paste it into TablePlus, DBeaver, `,_jsx(_components.code,{children:`psql`}),`, `,_jsx(_components.code,{children:`pg_dump`}),` or another host’s import screen to look at your data, edit it, export it or move it.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`The connection string is a full read-and-write login. Anyone who has it can read and change your app’s data — including your live app’s, because the preview and the published app share one database. Keep it out of chats, screenshots and public code.`})}),`\n`,_jsx(Heading,{level:`3`,id:`reset-password`,children:`Reset password`}),`\n`,_jsxs(_components.p,{children:[`If a connection string was shared somewhere it shouldn’t be, choose `,_jsx(_components.strong,{children:`Reset password`}),` under it. The database gets a new password and the old connection string stops working right away. Mythex hands the new one to your preview and your live app for you; the live app restarts to pick it up, which takes a few seconds. Anything else you connected with the old string (a desktop tool, another server) needs the new one.`]}),`\n`,_jsx(Heading,{level:`2`,id:`tips`,children:`Tips`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Be explicit: “create a waitlist table and save emails from the form”`}),`\n`,_jsxs(_components.li,{children:[`Keep secrets out of chat when possible — prefer project secrets / `,_jsx(_components.code,{children:`/secrets`})]}),`\n`,_jsx(_components.li,{children:`After enabling, republish if you already published and need the live app to use the database`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/features/chat#commands`,children:`Chat Commands`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/features/env-and-secrets`,children:`Env \u0026 secrets`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/features/storage`,children:`File storage`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/features/project-settings`,children:`Project settings`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/publish/overview`,children:`Publish`})}),`\n`]})]})}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":"Database","description":"How a Mythex project gets a database, how to download a backup of it, connect to it from any Postgres tool, reset its password, and how sleeping and billing work.","href":"/features/database"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Database","slug":"database","depth":1,"children":[]},{"title":"Availability","slug":"availability","depth":2,"children":[]},{"title":"What you get","slug":"what-you-get","depth":2,"children":[]},{"title":"Sleep when idle, or always on (Pro)","slug":"sleep-when-idle-or-always-on-pro","depth":2,"children":[]},{"title":"How to enable","slug":"how-to-enable","depth":2,"children":[]},{"title":"Your data","slug":"your-data","depth":2,"children":[{"title":"Download a backup","slug":"download-a-backup","depth":3,"children":[]},{"title":"Connect from another tool","slug":"connect-from-another-tool","depth":3,"children":[]},{"title":"Reset password","slug":"reset-password","depth":3,"children":[]}]},{"title":"Tips","slug":"tips","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"mythex","siteName":"Mythex Docs","title":"Database - Mythex Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-03T17:36:25.023Z","originalFileLocation":"features/database.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=\"How a Mythex project gets a database, how to download a backup of it, connect to it from any Postgres tool, reset its password, and how sleeping and billing work.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Mythex Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/mythex/FUoOWKHMGGxrRG1c/_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/mythex/FUoOWKHMGGxrRG1c/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/mythex/FUoOWKHMGGxrRG1c/_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/mythex/FUoOWKHMGGxrRG1c/_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/mythex/FUoOWKHMGGxrRG1c/_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/mythex/FUoOWKHMGGxrRG1c/_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/mythex/FUoOWKHMGGxrRG1c/_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/mythex/FUoOWKHMGGxrRG1c/_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/mythex/FUoOWKHMGGxrRG1c/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Database - Mythex Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"How a Mythex project gets a database, how to download a backup of it, connect to it from any Postgres tool, reset its password, and how sleeping and billing work.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Mythex Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.mythex.ai/features/database\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://mythex.ai/og.png\">\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=\"Database - Mythex Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"How a Mythex project gets a database, how to download a backup of it, connect to it from any Postgres tool, reset its password, and how sleeping and billing work.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://mythex.ai/og.png\">\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/mythex/FUoOWKHMGGxrRG1c/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Mythex Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#FB7185\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.mythex.ai/features/database\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/database.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.mythex.ai/#organization\",\"name\":\"Mythex Docs\",\"url\":\"https://docs.mythex.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/mythex/MYcuk9m9jCDpCwdy/logo-light.svg?fit=max\u0026auto=format\u0026n=MYcuk9m9jCDpCwdy\u0026q=85\u0026s=746dd9cba067524d2d5c1eba821e3166\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.mythex.ai#website\",\"name\":\"Mythex Docs\",\"url\":\"https://docs.mythex.ai\",\"publisher\":{\"@id\":\"https://docs.mythex.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.mythex.ai/features/database#webpage\",\"url\":\"https://docs.mythex.ai/features/database\",\"name\":\"Database\",\"description\":\"How a Mythex project gets a database, how to download a backup of it, connect to it from any Postgres tool, reset its password, and how sleeping and billing work.\",\"dateModified\":\"2026-10-03T17:36:25.023Z\",\"isPartOf\":{\"@id\":\"https://docs.mythex.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.mythex.ai/features/database#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.mythex.ai/features/database#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Workspace\",\"item\":\"https://docs.mythex.ai/features/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Database\",\"item\":\"https://docs.mythex.ai/features/database\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.mythex.ai/features/database#article\",\"headline\":\"Database\",\"name\":\"Database\",\"description\":\"How a Mythex project gets a database, how to download a backup of it, connect to it from any Postgres tool, reset its password, and how sleeping and billing work.\",\"url\":\"https://docs.mythex.ai/features/database\",\"mainEntityOfPage\":{\"@id\":\"https://docs.mythex.ai/features/database#webpage\"},\"image\":\"https://mythex.ai/og.png\",\"dateModified\":\"2026-10-03T17:36:25.023Z\",\"publisher\":{\"@id\":\"https://docs.mythex.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.mythex.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Mythex Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Mythex Docs","nav":{"global":null,"groups":[{"group":"Introduction","pages":[{"title":"Welcome to Mythex","href":"/index"},{"title":"Why Mythex","href":"/introduction/why-mythex"},{"title":"What you can build","href":"/introduction/what-you-can-build"},{"title":"FAQ","href":"/introduction/faq"},{"title":"Support","href":"/introduction/support"},{"title":"Partner program","href":"/introduction/partners"},{"title":"Partner terms","href":"/introduction/partner-terms"}]},{"group":"Compare","pages":[{"title":"Mythex vs other AI builders","href":"/introduction/compare"},{"group":"vs AI builders","expanded":false,"pages":[{"title":"Mythex vs Lovable","href":"/introduction/mythex-vs-lovable"},{"title":"Mythex vs Bolt","href":"/introduction/mythex-vs-bolt"},{"title":"Mythex vs v0","href":"/introduction/mythex-vs-v0"},{"title":"Mythex vs Base44","href":"/introduction/mythex-vs-base44"}]},{"group":"vs visual / no-code","expanded":false,"pages":[{"title":"Mythex vs WeWeb","href":"/introduction/mythex-vs-weweb"},{"title":"Mythex vs Bubble","href":"/introduction/mythex-vs-bubble"},{"title":"Mythex vs Softr","href":"/introduction/mythex-vs-softr"}]},{"group":"vs IDEs","expanded":false,"pages":[{"title":"Mythex vs Replit","href":"/introduction/mythex-vs-replit"},{"title":"Mythex vs Cursor","href":"/introduction/mythex-vs-cursor"}]}]},{"group":"Getting started","pages":[{"title":"Create an account","href":"/getting-started/create-account"},{"title":"Your first project","href":"/getting-started/first-project"},{"title":"Website \u0026 app templates","href":"/features/website-templates"},{"title":"Dashboard \u0026 projects","href":"/getting-started/dashboard"},{"title":"Projects library","href":"/getting-started/projects-library"},{"title":"From idea to live app","href":"/getting-started/idea-to-live-app"},{"title":"Quick start","href":"/getting-started/quickstart"}]},{"group":"Use cases","pages":[{"title":"Use cases","href":"/use-cases/overview"},{"group":"Websites","expanded":false,"pages":[{"title":"Build a landing page with Mythex","href":"/use-cases/build-a-landing-page"},{"title":"Build a waitlist with Mythex","href":"/use-cases/build-a-waitlist"},{"title":"Build a portfolio site with Mythex","href":"/use-cases/build-a-portfolio"},{"title":"Build a booking page with Mythex","href":"/use-cases/build-a-booking-page"},{"title":"Build a store or catalog with Mythex","href":"/use-cases/build-a-store"}]},{"group":"Apps \u0026 tools","expanded":false,"pages":[{"title":"Build a dashboard with Mythex","href":"/use-cases/build-a-dashboard"},{"title":"Build an internal tool with Mythex","href":"/use-cases/build-an-internal-tool"},{"title":"Build an admin panel with Mythex","href":"/use-cases/build-an-admin-panel"},{"title":"Build a simple CRM with Mythex","href":"/use-cases/build-a-crm"},{"title":"Build a client portal with Mythex","href":"/use-cases/build-a-client-portal"},{"title":"Build a SaaS MVP with Mythex","href":"/use-cases/build-a-saas"},{"title":"Add AI inside your app with Mythex","href":"/use-cases/build-an-ai-app"}]}]},{"group":"Workspace","pages":[{"title":"Workspace overview","href":"/features/overview"},{"group":"Chat \u0026 agent","expanded":true,"pages":[{"title":"Chat","href":"/features/chat"},{"title":"Memory and knowledge","href":"/features/memory"},{"title":"Generate images","href":"/features/generate-images"},{"title":"Subagents","href":"/features/subagents"},{"title":"Voice input","href":"/features/voice-input"},{"title":"App Testing","href":"/features/app-testing"},{"title":"Secrets in chat","href":"/features/secrets-in-chat"}]},{"group":"Preview \u0026 code","expanded":false,"pages":[{"title":"Preview and Code","href":"/features/preview-and-code"},{"title":"Code editor \u0026 LSP","href":"/features/code-editor"},{"title":"Multi-service apps","description":"How Mythex previews a website and an API server in one project — use the preview picker to switch between services, and see how publish deploys them.","href":"/features/multi-service"}]},{"group":"Project data","expanded":false,"pages":[{"title":"Database","href":"/features/database"},{"title":"File storage","description":"How file storage works for user uploads in Mythex apps — enabled automatically when needed, on Free and Pro with a 1 GB cap on Free — and how to browse, search, download and delete the files.","href":"/features/storage"},{"title":"Project settings","href":"/features/project-settings"},{"title":"Environment variables and secrets","href":"/features/env-and-secrets"}]},{"group":"Import \u0026 GitHub","expanded":false,"pages":[{"title":"GitHub, export, and import","href":"/features/github-and-export"},{"title":"After you import","href":"/features/after-import"}]},{"title":"Private workspace","href":"/features/sandbox"},{"title":"Connectors","href":"/features/connectors"},{"title":"MCP (Claude, Codex, Cursor)","href":"/features/mcp"},{"title":"MCP Inspector smoke checklist","href":"/features/mcp-inspector"},{"title":"How the tech is chosen","href":"/features/templates"}]},{"group":"Publish","pages":[{"title":"Publish overview","href":"/publish/overview"},{"title":"How to publish","href":"/publish/how-to-publish"},{"title":"Who can publish and open apps","href":"/publish/access-and-approvals"},{"title":"Unpublish \u0026 republish","href":"/publish/unpublish"},{"title":"Custom domains","href":"/publish/custom-domain"},{"title":"Hosting limits","href":"/publish/hosting-limits"},{"title":"Publish troubleshooting","href":"/publish/troubleshooting"}]},{"group":"Mobile apps","pages":[{"title":"Mobile apps","href":"/mobile/overview"},{"title":"Android \u0026 Google Play","href":"/mobile/android-google-play"},{"title":"iPhone \u0026 App Store","href":"/mobile/iphone-app-store"}]},{"group":"Recipes","pages":[{"group":"Connect services (BYO)","expanded":false,"pages":[{"title":"Integrate any API (secrets + agent)","href":"/recipes/integrate-any-api"},{"title":"Add login to your app (bring your own auth)","href":"/recipes/add-authentication"},{"title":"Accept payments with Stripe (bring your own keys)","href":"/recipes/add-stripe-payments"},{"title":"Send email from your app (bring your own provider)","href":"/recipes/send-email"},{"title":"Add AI features with your own API keys","href":"/recipes/add-ai-to-your-app"},{"title":"Handle webhooks in your backend","href":"/recipes/webhooks"}]},{"group":"Build patterns","expanded":true,"pages":[{"title":"Build a landing page (prompt recipe)","href":"/recipes/build-a-landing-page"},{"title":"Build a CRUD app","href":"/recipes/build-a-crud-app"},{"title":"REST API backend","href":"/recipes/rest-api-backend"},{"title":"SEO for your published app","href":"/recipes/seo-for-your-app"},{"title":"Redesign your UI","href":"/recipes/redesign-your-ui"},{"title":"Debug your app","href":"/recipes/debug-your-app"}]}]},{"group":"Prompting","pages":[{"title":"Effective prompts","href":"/prompting/effective-prompts"},{"title":"Prompt patterns","href":"/prompting/patterns"},{"title":"Iterate without rebuilding","href":"/prompting/iterate"},{"group":"More prompting","expanded":false,"pages":[{"title":"Debugging with prompts","href":"/prompting/debugging"},{"title":"Design \u0026 UI prompts","href":"/prompting/design-and-ui"},{"title":"Mobile-responsive prompts","href":"/prompting/mobile-responsive"},{"title":"Security for apps you build","href":"/prompting/security-for-your-app"},{"title":"Using npm packages","href":"/prompting/npm-packages"}]}]},{"group":"Guides","pages":[{"title":"Export and run elsewhere","href":"/guides/export-and-run-elsewhere"},{"title":"Static websites on Mythex","href":"/guides/static-websites"},{"title":"API backends (Dockerfile)","href":"/guides/api-backends"},{"title":"Python backends on Mythex","href":"/guides/python-backend"}]},{"group":"Plans \u0026 billing","pages":[{"title":"Plans","href":"/billing/plans"},{"title":"Credits","href":"/billing/credits"},{"title":"Usage","href":"/billing/usage"},{"title":"Manage billing","href":"/billing/manage"},{"title":"Invite friends","href":"/billing/referrals"}]},{"group":"Account","pages":[{"title":"Sign in","href":"/account/sign-in"},{"title":"Security","href":"/account/security"},{"title":"Email verification","href":"/account/email-verification"},{"title":"Account settings","href":"/account/settings"},{"title":"Language","href":"/account/language"},{"title":"Notifications","href":"/account/notifications"},{"title":"Workspaces and teams","href":"/account/workspaces"},{"title":"Invites","href":"/account/invites"}]},{"group":"FAQ","pages":[{"title":"Credits FAQ","href":"/faq/credits"},{"title":"Publish FAQ","href":"/faq/publish"},{"title":"Domains FAQ","href":"/faq/domains"},{"title":"Account FAQ","href":"/faq/account"},{"title":"Collaboration FAQ","href":"/faq/collaboration"},{"title":"Troubleshooting FAQ","href":"/faq/troubleshooting"}]},{"group":"Reference","pages":[{"title":"Glossary","href":"/reference/glossary"},{"title":"Data ownership","href":"/reference/data-ownership"},{"title":"Limits \u0026 fair use","href":"/reference/limits-and-fair-use"}]}]},"title":"Database - Mythex Docs","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":["a74be98ba7"],"chunks":["zoom-image-lightbox-D7yRe3On.js","lightbox-handle-r17bVUz3.js"]}