Guides — 11 for MariaDB

MariaDB guides

Everything we've written about MariaDB: connections, SQL patterns, imports, clients, and comparisons.

01Connect & How-To

Connect & How-To

Connect & How-ToMariaDB

How to Connect to MariaDB from Ruby

Connect to MariaDB from Ruby with mysql2 or trilogy, plus Sequel and ActiveRecord. Working code for connections, pooling, parameterized queries, INSERT...RETURNING, the utf8mb4 trap, and the ed25519 authentication gotcha that is genuinely MariaDB-specific.

7 min read
Connect & How-ToMariaDB

How to Connect to MariaDB from PHP

Connect to MariaDB from PHP with PDO and mysqli: why the MySQL drivers work, the utf8mb4 charset trap, the ed25519 authentication gotcha, RETURNING, transactions, SSL, and the errors you actually hit.

8 min read
Connect & How-ToMariaDB

How to Connect to MariaDB from C# (.NET)

Connect to MariaDB from C# with MySqlConnector: ADO.NET basics, async queries, parameters, connection pooling, Dapper and EF Core, SSL, and the auth and encoding traps that actually bite.

5 min read
Connect & How-ToMariaDB

How to Connect to MariaDB from Java

Connect to MariaDB from Java with the official MariaDB Connector/J: JDBC URL, HikariCP pooling, the MySQL-driver compatibility question, ed25519 auth, RETURNING, and the errors you actually hit.

5 min read
Connect & How-ToMariaDB

How to Connect to MariaDB from Go

Connect to MariaDB from Go with go-sql-driver/mysql. Working code for the database/sql interface, the parseTime trap, the ed25519 auth plugin, RETURNING support, connection pooling, and where MariaDB differs from MySQL.

7 min read
Connect & How-ToMariaDB

How to Connect to MariaDB from Node.js

Connect to MariaDB from Node.js using the official mariadb driver. Working code for connection pools, promise vs callback APIs, the named-pipe and socket traps, and how it differs from mysql2.

3 min read
Connect & How-ToMariaDB

How to Connect to MariaDB from Python

Connect to MariaDB from Python with the official mariadb connector, mysqlclient, or PyMySQL. Working code, the qmark vs %s parameter difference, the C build dependency trap, and when a MySQL driver is the better choice.

6 min read
← All guides