Change Hostname or IP Address
Steps for safely modifying the hostname or IP address of the Enterprise Manager server and ensuring all monitored agents remain connected.
To set the hostname or IP address for an existing MariaDB Enterprise Management instance, follow these instructions. Changing the hostname or IP address is useful if your server's IP changed or if you need to switch from an IP address to a public DNS name.
Connect to your server
SSH into the server where your Enterprise Manager is running:
ssh user@your-server-ipNavigate to the directory
Change into the enterprise-manager directory, where your Docker Compose files are located:
cd enterprise-managerEdit the .env file
Open the environment file with a text editor (for example nano):
nano .envFind the line that begins with MEMA_HOSTNAME= and update it with the new hostname or IP address. Example:
MEMA_HOSTNAME=your.new.hostname.or.ipSave the file
Save the file and exit the editor.
Restart the services
Restart the MEM services so the new environment variable takes effect. The --force-recreate flag ensures the containers are rebuilt using the updated environment variables:
docker compose up -d --force-recreateAfter the restart, your Enterprise Manager will be accessible at the new hostname or IP address.
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

