Create a Database
From your Bunny dashboard, click Add in the left-hand sidebar and select Database.

Name your database
Enter a unique name for your database. This name will be used to identify your database in the dashboard and connection URLs.

Select a region
Choose how you want your database deployed:
- Automatic
- Single region
- Manual
Automatic region selection: We will choose the optimal regions for your
database based on your location and best performance.

Get your credentials
Once created, copy your connection credentials:
- Database URL: Your database endpoint
- Access Token: Choose between Full Access (read/write) or Read Only depending on your needs

Connect from Edge Scripting or Magic Containers (Optional)
If you have an existing Edge Script or Magic Container, you can add your database credentials directly from this page:
- Click Add Secrets to Edge Script or Add Secrets to Magic Container Apps
- Select the script or app you want to connect
- The database URL and access token will be added as environment variables automatically

