Connectors

Standard MySQL and MariaDB drivers

Which stock MySQL and MariaDB clients and drivers were run against the Raft DB SQL front-end, what that verified, and what is not documented or not supported yet.

The SQL front-end of Raft DB (raftdb-mysql) answers MySQL clients and MariaDB clients on a MySQL port, so applications can use their stock driver. The decision of 2026-11-11 (owner) states the rule: nothing changes on the application side and nothing in its driver; the only change is the connection string, the MySQL way (host, port, user, password, database). Anything an application needs that the front-end lacks is built in the front-end or the core, never worked around in the application.

This page lists only what the project's records state as run. A driver that is not named below has no verification documented.

Choosing the dialect#

One front-end process is one dialect, set by dialect = mysql | mariadb (D79). A MariaDB endpoint is another process on another port.

dialect = mysqldialect = mariadb
version string8.0.36-Raft DB11.4.13-MariaDB-Raft DB
default authentication plugincaching_sha2_passwordmysql_native_password
default collationutf8mb4_0900_ai_ciutf8mb4_uca1400_ai_ci
default sql_modewith ONLY_FULL_GROUP_BYwithout ONLY_FULL_GROUP_BY

A client knows a server is MariaDB when the word mariadb is in the version string or the server does not set the first capability bit, CLIENT_MYSQL; the MariaDB handshake clears that bit. Raft DB offers none of MariaDB's extended capabilities (bulk execution, progress reporting, cached metadata), so a MariaDB connector does not use them. The ed25519, parsec and gssapi authentication plugins are not offered.

Each front-end lists only the databases it made itself (D60, D79): a MySQL client does not see databases made through the JSON or binary APIs or by the MariaDB endpoint.

What was verified#

client or driverwhat the documents statesource
MySQL Connector/Jprepared statements through the binary protocol (useServerPrepStmts=true), DatabaseMetaData calls (tables, columns, primary keys, indexes, getImportedKeys) and a transaction test program give output identical to MySQL 9.7; also used for the performance runs through the stock driverD52, D57, D66
MariaDB Connector/J 3.5.6connects to Raft DB as MariaDB and runs a probe program: DDL, client-side prepared statements with batches and generated keys, transactions, DatabaseMetaDataD80
the real mysql command-line clientruns the same scripts against the front-end and against a real MySQL 9.7, and the outputs are comparedD52
the real MariaDB 11.4 command-line clientconnects and runs scripts (--skip-ssl, because Raft DB has no TLS)D79
mysqldumpworks; a 130-table, 74,878-row export of an OJS-style application loads and round-trips identically to MySQLD64, changelog
PHP (the drivers of WordPress, PrestaShop, phpMyAdmin)the applications ran unmodified: see Web applications verified against Raft DB. The documents do not say which PHP extension (mysqli or pdo_mysql) the runs usedD60, D61
SQLyogrun by hand against the front-end, and the gaps found were closedD61

What the Connector/J programs cover#

  • Prepared statements (D52, level 1c): the binary prepared-statement protocol (prepared module). A test program runs a real JDBC driver against both servers and compares.
  • Transactions (D57): START TRANSACTION / BEGIN, COMMIT, ROLLBACK, SAVEPOINT, ROLLBACK TO, RELEASE SAVEPOINT, SET autocommit and the implicit commit of definition statements behave as in MySQL. They are atomic and isolated one table at a time: a session that writes a table inside a transaction holds it until the end and other sessions wait for it (@@transaction_isolation reports READ-COMMITTED; error 1205 after innodb_lock_wait_timeout, 1213 for a deadlock), and FOR UPDATE, LOCK IN SHARE MODE and LOCK TABLES are accepted and lock nothing (D57, 2026-11-11). Snapshot reads are a separate project (level 4b) in the plan.
  • Metadata: the information_schema tables are virtual tables, identical to MySQL 9.7.

What differs between the two Connector/J drivers#

Found by running MySQL Connector/J and MariaDB Connector/J 3.5.6:

MySQL Connector/JMariaDB Connector/J
URLjdbc:mysql://jdbc:mariadb://
on connectSET NAMES, SET autocommit, a few SELECT @@...one pipelined set sql_mode=CONCAT(@@sql_mode,',STRICT_TRANS_TABLES'),NAMES utf8mb4
prepared statementsserver side (binary protocol)client side: the parameters are written into the text, bytes as _binary '...'
batchesrewriteBatchedStatementspipelining, or COM_STMT_BULK_EXECUTE when offered

Raft DB handles what each one sends, for example a NAMES item inside a SET list, and character set introducers such as _binary and _utf8mb4 in front of strings.

Connection strings#

The connection string is the MySQL one. Examples of the form (host, port, user and database as in a mysql.conf that listens on 3306 and has user = app:secret):

jdbc:mysql://127.0.0.1:3306/mydb          (MySQL Connector/J)
jdbc:mariadb://127.0.0.1:3306/mydb        (MariaDB Connector/J)

For the front-end's configuration (listen, embed, raftdb_user, user = NAME:PASSWORD, dialect) see the MySQL front-end settings. In a normal installation the front-end runs in one process with the Raft DB server inside it (embed, D67); that is the mode compared with MySQL in D66.

Not verified or not supported yet#

  • No documented run for PyMySQL, mysqlclient, mysql-connector-python, SQLAlchemy, mysql2 (Ruby), Node mysql2, Go go-sql-driver/mysql, .NET MySqlConnector or other drivers. The plan names "PHP mysqli/pdo_mysql, JDBC, Python, Node, .NET, ..." as drivers that must work unchanged, but the documents record no result for the Python, Node and .NET ones. These pages do not claim them.
  • TLS. Raft DB has none yet. A client that offers TLS is answered as "no TLS", which every driver's default mode accepts (the plan, 2026-11-11); a client that requires TLS needs TLS support in the front-end, a later step. MariaDB 11.4 and later clients ask for TLS when they can, and the command-line client needs --skip-ssl.
  • Isolation of transactions (above).
  • Statement coverage against the manuals. The coverage run of the MySQL 9.7 manual runs each example on a real MySQL and on Raft DB: totals DIFF 70, SAME 58, SAME-ERR 10, UNSUPPORTED 104 (the run's own totals line). The MariaDB run does the same statement by statement for the MariaDB documentation (3,954 statements): SAME 2,063, SAME-ERR 392, DIFF 1,046, UNSUPPORTED 453. A DIFF is often the follow-on of one unsupported statement; both files list each statement. Since those files were generated, later decisions added stored procedures and functions (D87) and triggers (D88), among others.
  • EXPLAIN: answered in MySQL's plan-table columns with one row per table; MySQL 9.7's cost tree is not reproduced (D61).
  • MariaDB-only features listed as next steps in D80 and D81 that may not be built yet: data types such as SERIAL and ZEROFILL, roles, events, geometry, partitioning syntax, system-versioned tables. Check the SQL reference for the current state of a statement.

See also#