v.25.4New Feature

Clickhouse-local will retain its databases after restart

clickhouse-local will retain its databases after restart if you specify the --path command line argument. This closes #50647. This closes #49947. #71722 (Alexey Milovidov).
clickhouse-local now retains its databases after restart when the --path command line argument is specified.

Why it matters

Previously, the clickhouse-local tool did not persist databases across restarts, causing loss of data and requiring re-creation of data in each new session. This feature allows users to maintain persistent databases by specifying a storage path, improving usability and data continuity for local, lightweight ClickHouse operations.

How to use it

Start clickhouse-local with the --path argument pointing to a directory where you want to store the database files. For example:

clickhouse-local --path /path/to/storage

This will ensure that databases created or used in clickhouse-local persist across restarts.