Cloud
Run MariaDB Server as a managed service. Launch MariaDB Cloud, connect over TLS, and keep your schema, SQL, and code.
The shop runs on a MariaDB Community Server that you installed yourself, and lately the server takes more of your week than the shop does. A security release lands, so you patch. Somebody asks whether last night's backup restores, so you test it. The disk alert pages you on a Saturday. None of that work ships a feature.
MariaDB Cloud takes those jobs off your list. It runs MariaDB Server on AWS, Google Cloud, or Azure, handles the hardware and backups, and applies patches in a weekly maintenance window. A service launched with replicas also fails over to a replica on its own. Deployment compares who runs what across all three ways to run MariaDB. A Serverless service is ready in seconds and needs no sizing. Because it's the same MariaDB Server, the shop.products table and the Python script come along. Only the connection changes: a new host, port, user, and password, and TLS.
Connect to MariaDB Cloud
Launch a Service
Sign in at cloud.mariadb.com, click + Launch New Service, and pick MariaDB Serverless Single Node with a cloud provider and the Serverless region nearest your customers. Serverless runs in two regions on each provider, as Region Choices lists. Every service starts behind a firewall that refuses all connections, so add your laptop's public IP address under Manage, then Security Access. If you don't know the address, ask for it:
curl -sS checkip.amazonaws.comWhen the service shows Healthy, click Connect and copy the host, port, user, and password. Using the Portal walks through each screen.
Connect Over TLS
Connect with the mariadb client and the values from the Connect dialog. The --ssl-verify-server-cert option makes the client check the server's TLS certificate, so nobody between your laptop and the cloud can pose as your database. With -p, the client prompts for the password.
mariadb --host <host> --port <port> \
--user <user> -p --ssl-verify-server-certAt the prompt, create the same shop database and products table you made on your own server:
CREATE DATABASE IF NOT EXISTS shop;
CREATE TABLE shop.products (
id INT PRIMARY KEY AUTO_INCREMENT,
name VARCHAR(100) NOT NULL,
price DECIMAL(8,2) NOT NULL
);
INSERT INTO shop.products (name, price) VALUES
('Desk lamp', 39.00),
('Standing desk', 249.00),
('Notebook', 4.50);Connect using MariaDB Client has install steps for the mariadb client on macOS, Linux, and Windows.
Connect From Python
The Python script changes in two ways. The host, port, user, and password values come from the Connect dialog, and ssl_verify_cert=True turns on the certificate check, because MariaDB Connector/Python 1.1 leaves it off until you ask for it.
import mariadb
conn = mariadb.connect(
host="<host>",
port=3306,
user="<user>",
password="<password>",
database="shop",
ssl_verify_cert=True,
)
cur = conn.cursor()
cur.execute("SELECT name, price FROM products WHERE price < ?", (50,))
for name, price in cur:
print(f"{name}: {price}")
conn.close()Replace 3306 with the port from the Connect dialog if it differs. Connect From Python App adds error handling and failover across several hosts.
The script prints the desk lamp and the notebook, the same two rows as before, and the backups, the patch schedule, and the Saturday disk alerts now belong to MariaDB Cloud.
Keep Going
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

