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.
What are the connection details?
Section titled “What are the connection details?”| 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.
Do I need to create a database?
Section titled “Do I need to create a database?”Yes. A new instance has only the default postgres database (PostgreSQL) and the system schemas (MySQL). Create one for your app, see CLI clients:
createdb -h 127.0.0.1 -p 5432 -U postgres myappmysql -h 127.0.0.1 -P 3306 -u root -e "CREATE DATABASE myapp"Which page is mine?
Section titled “Which page is mine?”| 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.