Skip to content

Connection string

A connection string is a single text value, usually a URL, that tells an application how to reach a database.

A connection string is a single text value, usually in URL form, that tells an application which database server to reach: the driver or engine, user, host, port and database.

For a local SQLEye instance the strings follow these patterns, where the port is the instance’s port:

postgresql://postgres@127.0.0.1:<port>/postgres
mysql://root@127.0.0.1:<port>

There is no password, because the servers listen on 127.0.0.1 only. The instance’s Info tab shows the string, a psql or mysql command, a Laravel .env block and a DATABASE_URL line, and the sidebar menu has Copy connection string. Point your application at it and SQLEye can show its queries. See Connect your app.

← Glossary · Also available as Markdown.

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