Coming from other databases

Coming from MySQL, MariaDB and SQL Server

Pointing a MySQL, MariaDB or SQL Server application at Raft DB, the dump-and-load route, and the checklist to read first.

MySQL and MariaDB#

raftdb-mysql answers the MySQL and MariaDB protocol (default port 3306). Change the host, port and account in the connection string and keep the driver. Read connecting applications and web applications.

  1. Dump the source with mysqldump (or mariadb-dump) from a copy or a replica.
  2. Load it with the mysql client against Raft DB; a refused statement names itself.
  3. Run the application's tests and compare row counts.

SQL Server#

raftdb-mssql answers the TDS protocol (default port 1433), so SQL Server drivers connect. T-SQL is accepted as far as the SQL Server chapter lists. Move the data by scripting the schema and data out of SQL Server as .sql (for example with the generate-scripts feature of SQL Server Management Studio) and running the script against Raft DB. Raft DB does not read or write SQL Server's backup files.

Check first#

  • The list of what is not supported for your dialect.
  • Isolation is per table at READ-COMMITTED: a transaction that writes a table makes others wait for it; a wait ends with error 1205, a deadlock with 1213.
  • The dialects share the engine but not the tables.