Quick Start with DBGate

Quick Start with DBGate

Table of Contents

Quick Start on Windows

Quick steps with the portable package:

  1. Download the DBGate portable package.
  2. Unzip it to any folder on a local drive.
  3. Run dbgate.exe in the dbgate subfolder.

Quick steps with the installer package:

  1. Download the DBGate installer package.
  2. Unzip it to any folder on a local drive.
  3. Run setup.exe to install the DBGate.
  4. Run dbgate.exe in the C:\Program Files\DBGate\dbgate folder.

You have to see the following console app:

DBGate Console on Windows

If you do not see the console, run the setup.exe wizard from the dbgate folder and follow wizard steps to install ASP.NET Core Runtime.

Alternatively, download and install the Hosting Bundle, which includes the ASP.NET Core Runtime and IIS support, at

When you see the console app, open the shown URL: http://localhost:5003/ or https://localhost:5003/

You have to see the index page.

Click on the mssql-023 connection and open the cashbook table of the online sample:

DBGate s02.cashbook

Then try to connect to your local SQL Server, MySQL, and Postgres databases, from the home page or using the direct URLs:

  • http://localhost:5003/edit/mssql/
  • http://localhost:5003/edit/mysql/
  • http://localhost:5003/edit/pgsql/

You may view and edit data. And this is free!

You may connect to remote databases, adding a server and database into the connection segment like /edit/mssql:mssql.savetodb.com,AzureDemo100/.

At this point, you have tried the local and remote connections.

Now run the setup.exe wizard from the dbgate folder or DBGate Setup link from the Start menu.

The wizard allows configuring an IIS website, IIS application, or a Windows service, and HTTPS.

You may read more about installing DBGate under IIS.

You may add connections to all your servers and databases. See details in appsettings and DBGate endpoints.

Quick Start on Linux

Quick steps with the portable package:

  1. Download the DBGate package.
  2. Unzip it and copy the dbgate folder to the /var/www folder.
  3. Go to the /var/www/dbgate folder and run: dotnet dbgate.dll

You have to see the following response:

DBGate Console on Linux

If DBGate cannot start, install the ASP.NET Core Runtime using instructions at

When you start DBGate, try to get data using a command like this:

curl http://localhost:5003/api/mssql-023/cashbook

You have to see data from an online SQL Server database.

Press Ctrl-C to close the app and see the next steps in how to install DBGate on Linux.