Skip to main content

Database Installation

This page provides setup instructions for each supported database management system. For each one, it explains how to:

  • Install the database management system and required packages.
  • Create the database and user for UDMG.
  • Grant the required permissions.
  • Verify connectivity to the database. The examples use the open source usql command-line interface, which is recommended for its versatility and ease of use, but it is not required for UDMG installation or operation.
  • Run a query to confirm database access.

1. Install MySQL

Refer to the MySQL official documentation for guidance on installation.

info

The database must be running and accessible on the host where UDMG is installed.

2. Create a dedicated database and user for UDMG

CREATE DATABASE udmg;
CREATE USER 'udmgadm'@'localhost' IDENTIFIED BY 'udmg-mysql-password';

3. Grant the required permissions

GRANT ALL PRIVILEGES ON udmg.* TO 'udmgadm'@'localhost';

4. Verify the connection using usql

usql my://udmgadm:udmg-mysql-password@localhost/udmg

Expected output:

Connected with driver mysql (8.0.xx)
Type "help" for help.

my:udmgadm@localhost/udmg=>

5. Run a query to confirm database access

show tables;

Expected output on a new database:

(0 rows)

This confirms that:

  • The database connection is working.
  • The udmg user has access.
  • The database is reachable and currently empty.