blob: 0006817148aef170c19112cfc5e635c0b477c382 [file] [log] [blame]
#!/bin/bash
# Script to launch a local copy of CockroachDB for use by Perf in demo mode.
cockroach start-single-node --insecure --listen-addr=localhost:25000 --store=/tmp/cdb &
echo "CREATE DATABASE demo;" | cockroach sql --insecure --host=localhost:25000
cockroach sql --url=postgresql://root@localhost:25000/demo?sslmode=disable < ./migrations/cockroachdb/0001_create_initial_tables.up.sql