Databases
MySQL & MariaDB
Provision and connect to a managed MySQL or MariaDB database on OneBit Deploy.
OneBit Deploy offers managed MySQL and MariaDB — widely used relational databases that are drop-in compatible for most applications.
Create the database
Go to New → Managed database, choose MySQL or MariaDB, name it and deploy. OneBit provisions it and shows the connection details.

Connection string
A MySQL/MariaDB connection string looks like this:
mysql://USER:PASSWORD@HOST:PORT/DATABASECopy it into your app as a secret environment variable.
Connecting from Node.js
import mysql from 'mysql2/promise';
const conn = await mysql.createConnection(process.env.DATABASE_URL);
const [rows] = await conn.query('select 1 + 1 as result');
console.log(rows);MariaDB is a community-developed fork of MySQL; for most apps the same client libraries and connection strings work for both.