Back to blog

Deploy SingleStore Self-Managed in Less Than 30 Seconds

·2 min read
SingleStoreDevOpsDatabases

I've been a huge advocate and user of SingleStore for over 3 years now. Their solution has allowed me to scale beyond what I ever imagined on a $50/month Hetzner AX41-NVME. I've been able to surpass 2 billion records in total with an average of 100 million new records added per month.

I've installed SingleStore more times than I can count, and I got tired of running the same commands each time. So I decided to automate it.

This script has been my go-to for years and lets me deploy the self-managed tier in just under 30 seconds with minimal input.

Requirements

  • A Linux dedicated server (I'll be using Debian 11 for this example)
  • SingleStore license key (it's free)

Installation

SSH into your Linux machine and run:

bash <(curl -fsSL https://charliej.com/singlestore.sh)

If you'd prefer to inspect the script first:

wget https://charliej.com/singlestore.sh
cat singlestore.sh

Then run it:

chmod +x singlestore.sh
./singlestore.sh

It'll prompt you to enter your SingleStore license key. Here's how to get one:

  1. Head to portal.singlestore.com
  2. Sign in or sign up, then click your name in the top right
  3. Select the "Licenses" dropdown option
  4. Copy the license that says "Free License"

Next, enter the password you wish to use for your root user. Set this to something secure and write it down.

It'll take a few seconds to install the needed packages and configure SingleStore, then it'll be ready to use. Connect with the following details:

  • IP: Your machine's public IP
  • User: root
  • Password: The one you entered

If you have any problems, feel free to contact me on Twitter at @heychazza.