# Connect Spring Boot to SQLEye

> Set spring.datasource.url, username and password to a jdbc URL on 127.0.0.1 to use a SQLEye PostgreSQL or MySQL instance with Spring Boot.

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

Set `spring.datasource.url`, `username` and `password` in `application.properties`. Spring Boot tries an embedded database if you do not set the URL. Create the database first, see [CLI clients](/docs/connect/cli-clients/).

## How do I configure PostgreSQL?

The PostgreSQL JDBC URL form is `jdbc:postgresql://host:port/database`.

```properties
spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/myapp
spring.datasource.username=postgres
spring.datasource.password=
```

## How do I configure MySQL?

Connector/J's single-host form is `jdbc:mysql://host:port/database`.

```properties
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/myapp
spring.datasource.username=root
spring.datasource.password=
```

Replace the port with your instance's port.

Sources: [Spring Boot SQL databases](https://docs.spring.io/spring-boot/reference/data/sql.html), [PostgreSQL JDBC](https://jdbc.postgresql.org/documentation/use/), [Connector/J URL format](https://dev.mysql.com/doc/connector-j/en/connector-j-reference-jdbc-url-format.html). To see the queries Hibernate issues, [turn on capture](/docs/live-eye/capture/).
