# Connect .NET to SQLEye

> Use an Npgsql or MySqlConnector connection string with Host or Server 127.0.0.1, the instance port and no password to reach SQLEye.

Source: https://sqleye.com/docs/connect/dotnet/ · Last updated: 2026-11-29 · Publisher: CodeROG (https://coderog.com)

Use Npgsql for PostgreSQL and MySqlConnector for MySQL, with host `127.0.0.1`, the instance's port and no password. Create the database first, see [CLI clients](/docs/connect/cli-clients/).

## How do I configure PostgreSQL?

Npgsql keys are `Host`, `Port`, `Username`, `Password` and `Database`, separated by semicolons.

```text
Host=127.0.0.1;Port=5432;Username=postgres;Database=myapp
```

## How do I configure MySQL?

MySqlConnector accepts `Server`, `Port`, `User ID`, `Password` and `Database`. The password defaults to blank.

```text
Server=127.0.0.1;Port=3306;User ID=root;Database=myapp
```

Replace the port with your instance's port. Put the string in `appsettings.json` under `ConnectionStrings` or pass it to your provider as usual.

Sources: [Npgsql connection string parameters](https://www.npgsql.org/doc/connection-string-parameters.html), [MySqlConnector connection options](https://mysqlconnector.net/connection-options/). To see the queries your code sends, [turn on capture](/docs/live-eye/capture/).
