Pick the database your team already backs up, watches and upgrades. LyEve gave the same answers on eight servers across PostgreSQL, MySQL and SQL Server. The choice rests on what you run today.
Each database asks for one thing of its own before the engine's first start, and on MySQL the engine can do it for you. Two paid add-ons and the length of a first start are where a reader sees a difference afterwards.
Eight servers, side by side
We ran the same steps on November 11, 2026, with the LyEve engine v0.62.0 and admin console v0.28.0, on a fresh database each time. A row that links goes to the section with its detail.
| PostgreSQL | MySQL | SQL Server | |
|---|---|---|---|
| Versions we ran | 16, 17 and 18 | 8.0 and 8.4 | 2019, 2022 and 2025 |
| Set before the first start | A role that owns the database | The utf8mb4_unicode_ci collation, or the engine sets it |
Read committed snapshot isolation |
| Content, accounts and tenants | The same answers | The same answers | The same answers |
| Free plugins started with no license key | 32 | 32 | 32 |
| Full-text Search matches | Titles, bodies and tags | Titles and bodies | Titles and bodies |
| Slow-query analysis needs | The pg_stat_statements extension |
performance_schema turned on |
Nothing |
| First start on an empty database | Quicker than MySQL | The longest of the three | Quicker than MySQL |
| A production engine refuses the login | postgres |
root |
sa |
The versions we ran
- PostgreSQL 16.15, 17.11 and 18.6.
- MySQL 8.0.46 and 8.4.13. MySQL 9 is not supported yet.
- SQL Server 2019, 2022 and 2025, on the Linux container images.
The LyEve docs also list Azure SQL, with the same sqlserver:// connection string as SQL Server. We have not run these steps on Azure SQL.
What each database needs first
Each database needs a login that may create tables, because the engine creates its own on its first start. Use a dedicated login on all three. A production engine refuses to start as the default superuser and names it in the log.
PostgreSQL: a role that owns its database
CREATE USER lyeve WITH PASSWORD '<password>';
CREATE DATABASE lyeve OWNER lyeve;A role that holds privileges on a database it does not own is refused at the first start with permission denied for schema public. Keep sslmode=require in the URL unless the engine and the database share a private network.
MySQL: the collation, and the host inside tcp(...)
CREATE DATABASE lyeve CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;MySQL 8 gives a new database utf8mb4_0900_ai_ci unless the statement names a collation. The engine switches an empty database to utf8mb4_unicode_ci on its first start, and naming it here leaves nothing to switch. The connection string puts the host and port inside tcp(...), as tcp(db.example.com:3306).
SQL Server: read committed snapshot isolation
ALTER DATABASE [lyeve] SET READ_COMMITTED_SNAPSHOT ON WITH ROLLBACK IMMEDIATE;
ALTER DATABASE [model] SET READ_COMMITTED_SNAPSHOT ON;Without it, a read can lose a deadlock against a concurrent write, and that request fails. The engine checks the setting at each start and logs both statements when it is off. It never runs them, because the first one disconnects every other session on the database.
Each of the three has a guide with every step and the errors a first start can print: PostgreSQL, MySQL and SQL Server.
The answers that matched
On every one of the eight servers, the engine answered these with the same status codes:
- The check for whether setup is needed.
- Creating the first administrator.
- Defining a content type.
- Writing an entry, then listing the entries.
- Asking whether this install may create tenants, which a free install answers with
"enabled":false. - Creating a second tenant on a free install, refused with
402. - An account with the
adminrole listing tenants, creating one, and creating a user, each refused with403.
In the console, every server reached the setup page, created the administrator, opened the dashboard and opened the schema builder in a second browser.
Code written against LyEve on one database sends the same requests on the other two. Nothing in a content type or an entry names the database, because both are defined through the API or the console, never in SQL.
Search on each database
Full-text Search is an add-on at $8 a month, and every plan from Pro includes it. On PostgreSQL it matches an entry's title, body and tags. On MySQL and SQL Server it matches the title and the body, and each search takes longer as the number of entries grows. The search docs cover an external search engine, which keeps an index of its own.
Slow-query analysis on each database
The Query Monitor add-on, which Enterprise includes, finds the requests that are slow because of the database and shows their query plans. Each database needs something different before it works:
- PostgreSQL: the
pg_stat_statementsextension, loaded at server start and created in the database. - MySQL:
performance_schematurned on. - SQL Server: nothing.
Slow-query analysis gives the steps for each.
The first start
On an empty database the engine creates every table before it answers its first request. In our runs that took longer on MySQL than on PostgreSQL or SQL Server, on both MySQL versions. A later start finds the tables in place.
While the tables are being created, the engine's port does not answer yet. Run the setup check again after a short wait.
Which one to choose
- The one you run already. Backups, monitoring, upgrades and a person who knows the server matter more than any row in the table above.
- PostgreSQL with nothing in place. The quickstart starts it beside the engine. The VPS guide has one Compose file for the database, the engine and the console. For a managed database, the docs have pages for Supabase and Neon.
- SQL Server in a Microsoft shop. Turn on the one setting above and the engine runs beside your other SQL Server databases, under a login of its own.
How to choose a headless CMS puts the database question beside eleven others to ask any vendor.
Questions about the three
Does LyEve run on SQLite?
No. The engine reads a URL with any other scheme as PostgreSQL. A SQLite, Turso or libSQL address then fails to connect, and the engine does not start. The deploy docs list the supported databases.
Does it run on MySQL 9?
Not yet. MySQL 8.0 and 8.4 are supported, and those are the versions we ran.
Can one install use two databases?
No. The engine stores everything in the one database its DATABASE_URL names, the content of every tenant included.
Start LyEve on your database
LyEve runs on PostgreSQL, MySQL 8.0 or 8.4, and SQL Server 2019 or later, Azure SQL included. On SQL Server, turn on read committed snapshot isolation before the engine starts: Installation shows how.
Create a database and a user for LyEve. Then keep only your database's DATABASE_URL line uncommented, fill in its host and password, and start the engine on the free tier:
DATABASE_URL="postgres://lyeve:<password>@db.example.com:5432/lyeve?sslmode=require"
# DATABASE_URL="mysql://lyeve:<password>@tcp(db.example.com:3306)/lyeve?parseTime=true"
# DATABASE_URL="sqlserver://lyeve:<password>@db.example.com:1433?database=lyeve"
docker run -d --name lyeve-engine \
-e APP_ENV=development \
-e DATABASE_URL="$DATABASE_URL" \
-e JWT_SECRET="$(openssl rand -hex 32)" \
-e ENCRYPTION_KEY="$(openssl rand -hex 32)" \
-p 3001:3001 -p 3002:3002 \
ghcr.io/lyeve-labs/lyeve-core:latestThe engine reads which database it talks to from the scheme and creates its tables on first start.
The three database guides go on from here to the admin account and a first entry. The pricing page lists every plan and add-on, from Starter at $4 a month.