Skip to Content
DatabaseMariaDB on Zenifra

Required permissions

Use the database project ID as project-id and grant only the scope for the requested action:

ActionMinimum scope
View the projectproject.read on project:<project-id>
Change the nameproject.name.update on project:<project-id>
Change the descriptionproject.description.update on project:<project-id>
Change the passworddatabase.password.rotate on database:<project-id>
Change the versiondatabase.version.update on database:<project-id>
View the connectiondatabase.connection.read on database:<project-id>
Turn public access on or offdatabase.exposure.update on database:<project-id>

An owner has full access in a user session. assistant, member, and organization API Keys need the specific grant. The linked-applications lookup currently uses database.password.rotate in the API contract.

Accessing the Settings

  1. In the sidebar menu, click Projects
  2. Find and click the desired database project name
  3. On the database page, click Edit project, in the top-right corner

Available Settings

Project Name

The project name can be changed at any time.

Rules:

  • Minimum: 6 characters
  • Maximum: 32 characters
  • Only lowercase letters, numbers, and hyphens

Note: Changing the name does not affect the connection address, which uses the project ID.


Project Description

The project description can be changed at any time.

Characteristics:

  • Optional field to describe the project purpose
  • Helps identify and organize your projects
  • Can include information such as environment, customer, or purpose

Database Password

You can renew the password of the app user at any time. You do not choose the new password: Zenifra generates a completely new one.

How to change it:

  1. In the password section, request a new password
  2. Confirm the action
  3. Copy the new password shown and store it safely; it is shown only once

Warning: The database may be unavailable during the process.

Important: Linked applications are not updated automatically. The console lists those applications; manually update the connection variable (for example, DATABASE_URL) in each one.


MariaDB Version

The MariaDB version can be updated.

Available versions:

  • MariaDB 10
  • MariaDB 11

The console only offers versions newer than the current one.

How to update:

  1. Select the desired new version
  2. Click Save

Warning: Version upgrades can cause a few minutes of downtime. We recommend making the change during low-traffic hours.

Important: MariaDB version downgrade is not supported. Export your data with mariadb-dump/mysqldump before upgrading and test the application with the new version.


Connection String

The connection string is generated automatically and can be viewed at any time, with the password masked.

Format:

mariadb://app:<password>@mariadb-<project-id>.managed.zenifra.com:<port>/app?ssl=true&sslmode=require

The connection always requires TLS and points to the primary instance. Each driver turns TLS on in its own way: in the Driver selector of the Connection panel, pick yours and copy the Connection string for your driver. Without TLS, the database rejects the connection with Access denied for user '…' (using password: YES), even with the right password. See Connect your application to the database.

To copy: Click the copy button next to the connection string.

Tip: Use this string in your HTTP application's DATABASE_URL variable to connect to the database.


Public access

By default, the host and port in the connection string accept connections from anywhere, always over TLS. If the database only serves applications in your organization, you can turn public access off and use only private connections between applications.

To turn it off:

  1. Create the private connections for the applications that use the database and switch their connection variable to the internal address <project>.<organization-id>.zenifra.local:3306, over TLS, as described in TLS connections to databases
  2. On the project edit page, find the Public access card
  3. Turn public access off and confirm the action
  4. On the database page, the connection card now shows the Public access off notice

To turn it back on:

  1. In the Public access card, turn public access on and confirm
  2. The database accepts connections again on the same host and the same port; the external connection string stays the same

Warning: while public access is off, admin tools, local scripts, and applications outside Zenifra can no longer connect to MariaDB. Private connections between applications keep working, and password rotation remains available.

Note: the database must be running, and the change is not accepted while another operation is in progress on the project.


Replicas (MariaDB)

MariaDB on Zenifra uses a fixed configuration of 3 instances:

  • 1 primary instance: receives write and read connections
  • 2 replicas: keep a copy of the data and can take over if the primary fails

Note: Unlike PostgreSQL, MariaDB replica count is fixed (3 instances) and cannot be changed.

Automatic Failover

MariaDB includes automatic failover:

  • if the primary instance fails, one of the replicas can be promoted automatically
  • the connection keeps the same host and port
  • open connections can be closed during the switch; configure your application to reconnect automatically

Storage

Database storage can be adjusted.

Limits:

  • Minimum: 1 GB
  • Maximum: 250 GB

Impact:

  • For hourly projects: storage can be increased
  • For monthly/yearly contracts: storage is set at purchase and cannot be changed during the contract

Plan

In hourly billing, you can change the database plan in the project edit page. On monthly or yearly contracts, the plan cannot be changed during the contract. The change may cause temporary downtime.

Automatic renewal

On monthly and yearly contracts, the project edit page lets you enable or disable automatic contract renewal. Only the organization owner can change this option.

Warning: Storage reduction is not supported. Increasing storage can cause a few minutes of downtime.


Project Actions

Stop the Project

When stopping the project:

  • the database is interrupted
  • replicas are shut down
  • the project becomes inaccessible
  • for hourly projects, plan billing stops, but storage costs continue

When to use it:

  • when you do not need the database temporarily
  • to save money on hourly projects

Start the Project

To start a stopped project:

  • the database starts again
  • replicas are initialized
  • the project becomes accessible again
  • for hourly projects, billing resumes

Delete the Project

Deletion is permanent and irreversible.

What happens:

  • all replicas are removed
  • all data is deleted

Warning: after you delete the project, its backups are kept for the plan's retention period and then permanently removed (Automatic backups). Export your data with mariadb-dump/mysqldump before deleting. This action cannot be undone.


Next Steps


FAQ

Can I change the database password?

Yes. At any time through the project settings; Zenifra generates the new password and shows it only once. Remember to update the connection variable in the applications that use the database.

Does changing settings cause downtime?

It depends on the change:

  • Password: May cause downtime during the process
  • MariaDB version: May cause a few minutes of downtime
  • Replicas: Fixed configuration (not changeable)
  • Storage: May cause a few minutes of downtime
  • Plan: May cause temporary downtime

Can I restore a deleted database?

No. Deletion is permanent, but automatic backups are kept for the plan's retention period (3, 7, 14, or 30 days) and can be restored by support within that window. After that they are permanently removed. Export your data before deleting.

What happens if the primary instance fails?

MariaDB includes automatic failover:

  • one of the replicas is promoted to primary
  • the connection keeps the same host and port
  • open connections can be closed during the switch; configure your application to reconnect automatically

How do I back up my database?

Zenifra makes automatic backups, included in your plan, and restores are requested from support (see Automatic backups). As an extra layer, export your data periodically with mariadb-dump/mysqldump, store the copies outside the project, and test restores.

Can I connect external applications to the database?

Yes, while public access is on, which is the default. Use the connection string provided in the settings; the connection requires TLS. Database projects do not provide whitelist or blacklist controls. If no client outside Zenifra needs the database, turn public access off and connect your applications through private connections.

Can I change the number of MariaDB replicas?

No. MariaDB on Zenifra uses a fixed configuration of 3 instances (1 primary + 2 replicas). This configuration cannot be changed.

Last updated on

On this page