Server
MariaDB Community Server runs transactions, JSON, and vector search behind one SQL surface. Tour the open source edition of MariaDB Server, from storage engines to option files.
The shop runs. The shop.products table answers queries from Python, and before you build orders, carts, and reports on top of it, you want to know the machine you're standing on. That machine is MariaDB Community Server, the open source edition of MariaDB Server. MariaDB Enterprise Platform is built on MariaDB Enterprise Server instead, and MariaDB Cloud runs Community Server on its Foundation tier and Enterprise Server on its Power and PowerPlus tiers. The accounts, privileges, and option files on this page work the same way in both editions.
The tour has three stops. Open the mariadb command-line client against the server from the landing page and follow along.
Look Around
Start by asking the server what it is and what it holds. The answers come back in a few lines, and they tell you more than a version number. In the mariadb command-line client, run:
SELECT VERSION();
SHOW DATABASES;
SHOW ENGINES;The SHOW DATABASES output lists shop next to system databases such as mysql and information_schema, where the server keeps its own bookkeeping. The SHOW ENGINES output is the interesting one. Each storage engine stores table data in its own way, and the Support column marks InnoDB as DEFAULT. That's why the products table became an InnoDB table without an ENGINE clause, and why it can handle checkout traffic with transactions and row-level locks. A MariaDB Primer walks through more of the client.
Create an Application User
So far the Python script connects as root, which can drop every database on the server. The shop doesn't need that much power, so create a shop_app account that can read and change rows in the shop database and nothing else.
CREATE DATABASE IF NOT EXISTS shop;
CREATE USER 'shop_app'@'%' IDENTIFIED BY 'app-password';
GRANT SELECT, INSERT, UPDATE, DELETE ON shop.* TO 'shop_app'@'%';
SHOW GRANTS FOR 'shop_app'@'%';An account in MariaDB is a user name plus a host, and the % wildcard matches any host. The wildcard matters under Docker: the script's connection reaches the container through Docker's network, so the server sees it arrive from the network's gateway address, not from localhost. On a server you run yourself, narrow the host to the machine the app runs on, as the Deployment page does.
This example uses Python. MariaDB has connectors for Node.js, Java, C#, C++, and more, and each one signs in with the same account. Point the Python script at the new account by changing two lines:
The script prints the same two products, and a bug in the app can no longer drop a table. The GRANT reference lists every privilege you can give.
Change a Server Setting
Server behavior lives in system variables, such as the max_connections variable, which caps how many clients can connect at once. Its default is 151, and a busy sale with several app workers can use that up. You could run SET GLOBAL max_connections = 300;, but the server forgets that value at the next restart, because it reads its startup settings from option files. Put this [mariadb] section in an option file, then restart the server so it reads the file again.
Where the file goes and how you restart depend on how you installed the server. Pick your tab.
The image reads option files from /etc/mysql/conf.d inside the container. Save the section above as shop.cnf on your machine, copy it in, and restart the container:
The file lives in the container, so it's gone if you remove the container. For a long-lived setup, keep the file in a host directory and mount it at /etc/mysql/conf.d, as the MariaDB Container Cheat Sheet shows.
On RHEL and its relatives, add the section to /etc/my.cnf or a file in /etc/my.cnf.d/. On Debian and Ubuntu, add it to a file in /etc/mysql/mariadb.conf.d/, such as 99-shop.cnf. Then restart the server:
The MSI installer creates a my.ini file in the data folder of the install directory. Add the section to that file, then restart the MariaDB service, the installer's default service name, from a command prompt that runs as Administrator:
You can also restart the service from the Services app.
Homebrew's MariaDB reads /opt/homebrew/etc/my.cnf on Apple silicon and /usr/local/etc/my.cnf on Intel-based Macs. Add the section to that file, then restart the server:
Check the value from the mariadb client:
Configuring MariaDB with Option Files explains which files the server reads and in what order.
With the app on its own account and the connection limit in an option file, the server is ready for the next table the shop needs.
Keep Going
This page is: Copyright © 2026 MariaDB. All rights reserved.
Last updated
Was this helpful?

