Beta

Every plan is free right now. The prices below apply once the beta ends.

Skip to content
Clodo
Back to docs

Database

Connecting to your database

MySQL and PostgreSQL connection details with sample code.

When you order a database plan, the panel shows the host, port, database name, username and password. Pass these to your application as environment variables.

DB_HOST=db.clodo.net
DB_PORT=3306
DB_NAME=musteri_veritabani
DB_USER=musteri_kullanici
DB_PASSWORD=panelden-aldigin-sifre

Node.js example

import mysql from "mysql2/promise";

const pool = mysql.createPool({
  host: process.env.DB_HOST,
  port: Number(process.env.DB_PORT),
  user: process.env.DB_USER,
  password: process.env.DB_PASSWORD,
  database: process.env.DB_NAME,
  connectionLimit: 5,
});

Keep the connection pool small. Your plan has a connection limit and idle connections will fill it up.

Backups

Database plans are backed up daily. However backups are not guaranteed to be complete, so keep your own copy of important data.

Still stuck?

Open a support request from the panel. The conversation stays on record and we will get back to you.