NEW RasterizedDB 1.1.0 is out: sharding and the gateway, the message broker, roles and row-level security, compression, .NET on NuGet, and the enterprise edition. What's new ›
PROTOCOLS · MYSQL

MySQL clients, no MySQL server.

MySQL 8.4 and MariaDB 11.4 clients connect over TCP, TLS or a unix socket. A mysqldump loads as is. Stored procedures, temporary tables, LOAD DATA LOCAL INFILE and server-side cursors work.

1 / 3

Connection

Protocol 4.1 with multi-statements and multi-results. Authentication is caching_sha2_password against the same role catalogue every other protocol uses; a first login must come over TLS, and a client asking for mysql_native_password is switched over.

shell
rasterizeddb_core --mysql-port 3306 --mysql-socket /run/rdb/mysql.sock
mysql -h 127.0.0.1 -P 3306 -u superuser -p
2 / 3

The dialect, rewritten

  • Backtick names, LIMIT a, b, <=>, REGEXP, DIV
  • AUTO_INCREMENT, with the insert id in the OK packet
  • INSERT IGNORE, ON DUPLICATE KEY UPDATE, REPLACE
  • UPDATE / DELETE with ORDER BY … LIMIT, multi-table UPDATE and DELETE
  • CREATE TABLE with MySQL types, KEY, UNIQUE KEY, ENUM; ALTER … FIRST / AFTER
  • IFNULL, IF, GROUP_CONCAT, DATE_FORMAT, JSON_EXTRACT, ->>, SQL_CALC_FOUND_ROWS
  • SHOW DATABASES / TABLES / COLUMNS / INDEX / CREATE TABLE / VARIABLES, DESCRIBE
3 / 3

Kept by the front end

  • Stored procedures with IN / OUT / INOUT, cursors, handlers, SIGNAL and nested CALL
  • CREATE TEMPORARY TABLE, per connection
  • ON UPDATE CURRENT_TIMESTAMP
  • LOAD DATA LOCAL INFILE with MySQL's field and line options, in one transaction
  • FULLTEXT keys and MATCH … AGAINST, answered by a GIN index
  • SET FOREIGN_KEY_CHECKS = 0, so a mysqldump loads in order
✓ page rendered in 119 µs axum + tera + htmx · no other javascript