You can run GreptimeDB standalone on your local machine for testing and development.
GreptimeDB is designed for running in shared cloud environment, which enables faster on-boarding and zero-maintainence for users.
Step 1. Download gtctl
, the command-line tool for GreptimeDB
curl -L https://github.com/GreptimeTeam/gtctl/raw/develop/hack/install.sh | sh
Step 2. Verify if gtctl is successfully downloaded and works on your platform
./gtctl version
Step 3. Create Kubernetes namespace for GreptimeDB
kubectl create namespace greptimedb-test
Step 4. Deploy GreptimeDB
./gtctl cluster create greptimedb-test -n greptimedb-test
Step 5. Use kubectl
to port forward the frontend
You can get the command from output of Step4:
kubectl port-forward svc/greptimedb-test-frontend -n greptimedb-test 4002:4002
Step 6. Connect to the database with standard MySQL client
mysql -h 127.0.0.1 -P 4002
Check our Getting Started guide to create your first table.