v.25.4New Feature
Clickhouse-local will retain its databases after restart
clickhouse-localwill retain its databases after restart if you specify the--pathcommand line argument. This closes #50647. This closes #49947. #71722 (Alexey Milovidov).
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/storageThis will ensure that databases created or used in clickhouse-local persist across restarts.