Browse docs
Cloud docs
Connecting to MariaDB on Layerbase Cloud
MariaDB instances use the MySQL-compatible protocol, making them easy to drop into existing MySQL and MariaDB applications.
Best for: MariaDB-native features, MySQL-compatible apps, and teams moving workloads off hosted MariaDB services.
Open your database in the dashboard
Go to /cloud, click the database you just created, and the connection panel shows the host, port, username, password, and a ready-to-paste connection string for the engine.
Copy the connection string from Quick Connect, including the generated password and database name.
TLS is required, on by default
Enable TLS in your client, usually with --ssl-mode=REQUIRED or ssl: true.
MySQL-compatible wire protocol on the allocated TLS port
Use any standard client
MariaDB works with the normal client family for that engine. Start with the dashboard snippet, then move the same URL and credentials into your app environment.
If your client has separate direct, pooled, TLS, or HTTP options, prefer the exact variant shown in Quick Connect.
mariadb --ssl --host your-host.cloud.layerbase.dev --port 3306 --user layerbase --password appMariaDB notes
- Most MySQL drivers work against MariaDB without code changes.
- If your client supports a MariaDB-specific driver, either driver family is acceptable.