Skip to content

Connect your app to a SQLEye database

Point your app at 127.0.0.1 and the instance’s port, with user postgres (PostgreSQL) or root (MySQL) and no password. The Info tab of the instance shows ready-made strings.

PostgreSQL MySQL
Host 127.0.0.1 127.0.0.1
Port the instance’s port (default 5432) the instance’s port (default 3306)
User postgres root
Password none none
Database postgres none created by default
URL postgresql://postgres@127.0.0.1:<port>/postgres mysql://root@127.0.0.1:<port>

Use 127.0.0.1, not localhost. The servers have no Unix socket and listen only on TCP, and some clients treat localhost as a socket path, especially for MySQL.

Yes. A new instance has only the default postgres database (PostgreSQL) and the system schemas (MySQL). Create one for your app, see CLI clients:

Terminal window
createdb -h 127.0.0.1 -p 5432 -U postgres myapp
mysql -h 127.0.0.1 -P 3306 -u root -e "CREATE DATABASE myapp"
Stack Page
PHP / Laravel Laravel
Python / Django Django
Ruby / Rails Rails
Node.js: Prisma, Drizzle, Knex Node.js
Go Go
Java / Spring Boot Spring
C# / .NET .NET
psql, mysql CLI clients
pgAdmin, DBeaver, TablePlus, DataGrip GUI clients

To see your app’s queries, turn on capture. If the port is busy, see ports.

SQLEye is developed and maintained by CodeROG. This page is also available as Markdown.