Simplifying Database Management with EdgeDB: An Installation Guide on Windows

Simplifying Database Management with EdgeDB: An Installation Guide on Windows

Introduction:

EdgeDB is a modern, high-performance database designed for efficient and scalable data storage. If you're a Windows user and interested in exploring the capabilities of EdgeDB, you've come to the right place.

In today's fast-paced world, efficient and reliable data management is crucial for businesses and developers. EdgeDB, a modern and open-source database, offers a unique approach to database management with its focus on combining the benefits of traditional relational databases with the flexibility of modern NoSQL databases. In this blog post, we'll walk you through the step-by-step installation process of EdgeDB on a Windows machine.

Prerequisites:

Before we begin, let's ensure that your system meets the following prerequisites:

  1. Windows 11 or later (64-bit version)

  2. Microsoft Visual C++ Redistributable for Visual Studio 2019 (64-bit version)

  3. Internet connection

Step 1: Install WSL (EdgeDB on Windows requires WSL 2 because the EdgeDB server runs on Linux)

The Windows Subsystem for Linux (WSL) allows Windows users to run a Linux environment directly on their Windows machines. With WSL, you can enjoy the benefits of both Windows and Linux, opening up a world of possibilities for developers, system administrators, and enthusiasts.
Note: Download From Microsoft Store

Step 2:

  1. For 'iwr' command: The 'iwr' command is typically associated with Windows PowerShell and is not available by default on Linux systems. If you are trying to execute this command on a Linux machine, it won't work. 'iwr' is used for making web requests and downloading files in PowerShell.

    If you need to make a web request in a Linux environment, you can use the 'curl' or 'wget' commands instead. For example:

    curl https://ps1.edgedb.com -o output.html

  2. For 'iex' command: The 'iex' command is associated with Elixir, a programming language built on the Erlang virtual machine. If you want to install Elixir and the 'iex' command, you can follow these steps:

    Add the Elixir repository to your system:

    wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb sudo dpkg -i erlang-solutions_2.0_all.deb

    Update your package list and install Elixir:

    sudo apt update

    sudo apt install elixir

  3. For 'iwr' command: To install it, you can run the following command:

    sudo apt install iw

  4. For 'iex' command: The 'iex' command is associated with Elixir, a programming language built on the Erlang virtual machine. To install Elixir, you can use the following command:
    sudo apt install elixir

  5. To get started with EdgeDB
    iwr https://ps1.edgedb.com -useb | iex

  6. Test the installation:
    edgedb --version

Congratulations! You have successfully installed EdgeDB on your Windows machine.