> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/tools/enterprise/mariadb-enterprise-manager/administration/deployment/adding-databases/add-database-without-maxscale.md).

# Add a Database without MaxScale

Register a standalone MariaDB Server, or a primary/replica or Galera topology without MaxScale, in Enterprise Manager and link the monitoring agent on each server.

{% hint style="warning" %}
To install `mema-agent`, you need to setup [MariaDB Enterprise Repository - "MariaDB Enterprise Tools"](https://mariadb.com/docs/server/server-management/install-and-upgrade-mariadb/mariadb-package-repository-setup-and-usage.md#repositories)
{% endhint %}

Use this method for a single MariaDB Server or to manually define a Primary/Replica or Galera cluster.

{% stepper %}
{% step %}
**Prepare your server(s)**

First, perform these actions **on each MariaDB Server** you plan to add.

1. Install the Agent package.

```bash
# For Red Hat/CentOS/Rocky
sudo dnf install -y mema-agent
```

```bash
# For Debian/Ubuntu
sudo apt install -y mema-agent
```

```bash
# For SLES
sudo zypper install -y mema-agent
```

2. Create the Enterprise Manager user (allows the Enterprise Manager server to connect remotely):

```sql
CREATE USER 'monitor'@'<Enterprise_Manager_IP>' IDENTIFIED BY '<password>';
GRANT REPLICA MONITOR ON *.* TO 'monitor'@'<Enterprise_Manager_IP>';
```

Replace `<Enterprise_Manager_IP>` with the IP of your Enterprise Manager server and `<password>` with a secure password.

3. Create the Local Agent user (required for the agent to collect detailed metrics from the local database instance):

```sql
CREATE USER 'monitor'@'localhost' IDENTIFIED BY '<password>';
GRANT PROCESS, BINLOG MONITOR, REPLICA MONITOR, REPLICATION MASTER ADMIN ON *.* TO 'monitor'@'localhost';
```

Replace `<password>` with a secure password.
{% endstep %}

{% step %}
**Register in the UI**

1. Go to your MariaDB Enterprise Manager web interface (for example `https://<Enterprise_Manager_IP>:8090`).
2. Log in with user who has `edit` permission.
3. Begin the Add Database process:
   * If this is your first time and no databases are present, you'll be on the "Add Database" screen automatically.
   * If you already have other databases, click the **+ Add Database** button.
4. Ensure the **Database without MaxScale** option is selected.

   <figure><img src="https://2850516351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkuTXWg0NDbRx6XUeYpGD%2Fuploads%2Fgit-blob-5d2795c59aad6a57737bdcfaaebc29fd3f7244db%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
5. Fill in the connection details for your first server using the Enterprise Manager User (`'monitor'@'<Enterprise_Manager_IP>'`).
   {% endstep %}

{% step %}
**Standalone server or a Topology**

To add a Standalone Server: Click **Add** and proceed to the next step (4).

To create a Topology:

1. Click the Plus icon (+) to add another server.

   <figure><img src="https://2850516351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkuTXWg0NDbRx6XUeYpGD%2Fuploads%2Fgit-blob-1f86ed503587002b3127e59679c2a562281a8167%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Fill in the connection details for the second server in your topology and click **Confirm**. Repeat for all nodes in your topology.
3. Once all nodes are added, select the Topology Type (e.g., Primary/Replica — default — or Galera Cluster) and click **Confirm**.

   <figure><img src="https://2850516351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkuTXWg0NDbRx6XUeYpGD%2Fuploads%2Fgit-blob-86e6b6b3990ebb13640c679568ed8fa2236e7b87%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
To convert an existing standalone server into a topology of multiple servers: click the three-dot menu (⋮) next to the server, choose **Edit**, and click the Plus icon (+). Then follow the same steps to add nodes.

<img src="https://2850516351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkuTXWg0NDbRx6XUeYpGD%2Fuploads%2Fgit-blob-da77e0cac57b02d03f9f23e950c9956fc146dd1d%2Fimage.png?alt=media" alt="" data-size="original">
{% endhint %}
{% endstep %}

{% step %}
**Link the Agent(s) 🔗**

For each server added, link its agent:

1. Find the server in the inventory list, click the three-dot menu (⋮), and select **Metrics configuration**. You need the `admin` role.

   <figure><img src="https://2850516351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkuTXWg0NDbRx6XUeYpGD%2Fuploads%2Fgit-blob-c7e00b03849e12bf190743d34d7f65740075c23a%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
2. Enter the credentials for the Local Agent User (`'monitor'@'localhost'`) to generate a setup command.

   <figure><img src="https://2850516351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkuTXWg0NDbRx6XUeYpGD%2Fuploads%2Fgit-blob-9020fd7838595d217f36183e8cd6cf27158f18d9%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
3. Copy the command and run it on that server's terminal to link the agent.
   {% endstep %}
   {% endstepper %}

<sub>*This page is: Copyright © 2026 MariaDB. All rights reserved.*</sub>

{% @marketo/form formId="4316" %}
