docs / install
Install
Install the NextSQL binaries, then initialize a data directory.
Published versioned builds, checksums, and a feature comparison are on Downloads.
Packages
Build Linux (.deb, .tar.gz, .run) and Windows (.zip, setup.exe) installers from a checkout:
The packages copy nextsql, nextsqld, and nextsql-bench plus a default config. They do not create a data directory, write a root unlock key, or start the server. After install:
Windows defaults: binaries in %ProgramFiles%\NextSQL, data in %ProgramData%\NextSQL\data, key in %ProgramData%\NextSQL\keys\root.key. Start with Start-Service NextSQL after nextsql init.
Keep the root unlock key off the data volume in production. Details: `packaging/README.md`.
Install with Go
Requires Go 1.22+ so go install can fetch and compile the engine onto your PATH.
Confirm:
nextsql is the CLI. nextsqld is the server. nextsql-bench is optional (official measurements with encryption, WAL, and fsync on).
Go puts binaries in $(go env GOPATH)/bin (often ~/go/bin). Put that directory on your PATH.
What you will create next
A data directory is not a single file. After nextsql init and the first server start you typically have:
The database root unlock key is a separate --key-file (NSKY, mode 0600). Initialization also creates a deployment registry root at --instance-key-file (default KEY-FILE.instance). Keep both off the data volume. The registry foundation currently verifies one default database; it is not yet selectable multi-database hosting.
Automated installs may place the corresponding file paths and logical names in a protected mode-0600 host env file and run nextsql init --env-file PATH: NEXTSQL_DATA_DIR, NEXTSQL_KEY_FILE, NEXTSQL_INSTANCE_KEY_FILE, NEXTSQL_REALM_NAME, NEXTSQL_DATABASE, NEXTSQL_SERVER_USER, and NEXTSQL_SERVER_PASSWORD_FILE (preferred) or NEXTSQL_SERVER_PASS. These are server/bootstrap settings, not client login fallback. Key values are paths, not raw key bytes. Keep this host provisioning file out of application containers and source control.
Drivers
Official drivers ship with the engine. They are not a separate download.
See Drivers.
Build from source (optional)
If you are changing the engine itself: