> ## Documentation Index
> Fetch the complete documentation index at: https://rexrex.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Check Database Version

> Compare the on-disk Reth schema version with the schema supported by Rex.

Use `db version` before deeper inspection when the database may have been created by a different Reth release.

## Command

```sh theme={null}
rex db --datadir ./alice version
```

## Example Output

```text theme={null}
DATABASE VERSION

MDBX path:  ./alice/db
On disk:    v2
Supported:  v2
Compatible: yes
```

The command reads `db/database.version` and compares it with the database version constant from Rex's pinned Reth v1.9.3 dependency. It does not open MDBX.

If the versions differ, the command reports `Compatible: no`. `db info` and `db tables` refuse to open that database, preventing Rex from interpreting tables with the wrong schema.

<Warning>
  Do not edit `database.version` to force compatibility. The file describes the schema already on disk; changing the number does not migrate the data.
</Warning>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.