How to install and test ClickHouse on Microsoft Windows
When ClickHouse installing on Windows 10 you may receive errors when inserting data, for example:- Open Powershell by right-clicking on the PowerShell icon and selecting “run as administrator”.
- Follow the instructions from Microsoft to upgrade to WSL 2, here: https://learn.microsoft.com/en-us/windows/wsl/install
- Once it is upgraded, open WSL from PowerShell.
- For testing follow these instructions, you should have similar output: Since this is for testing, I logged in as root to avoid permissions issues:
- Create a ClickHouse directory:
- From the new directory, download clickhouse:
- Start the clickhouse server:
- In another WSL window, start the client:
- Create the database and table:
- Insert sample rows:
- View the rows: