mariadb

"mariadb" Humanitec Resource Type

Used to provision a database in a MariaDB instance.

MariaDB is by design protocol compatible with MySQL, so the mariadb and mysqlresource types can be used interchangeably.

Inputs

None

Outputs

Name

Description

host

The IP Address or hostname that the instance is available on.

name

The name of the database that the workload should connect to.

password

The password for the user or role.

port

The port on the host that the instance is available on.

username

The user or role that the workload should use to connect to the database.

Example

For a MariaDB database added to a workload under the ID my-db, a connection string can be built as:

mysql://${externals.my-db.username}:${externals.my-db.password}@${externals.my-db.host}:${externals.my-db.port}/${externals.my-db.name}