SQL Clients (MySQL Workbench, pgAdmin, DBeaver)
Part of the SQL Roadmap
In short
The database runs quietly in the background with no screen of its own. A SQL client is the window where you type queries, browse tables and see results.
A SQL client is the app where you write queries and see results. MySQL Workbench and pgAdmin are built for one database each, while DBeaver works with many.

Think of it like this
TV remote vs universal remote
Your Samsung TV came with its own remote, and it works best with that TV. A universal remote can control the TV, the set-top box and the AC, with slightly fewer special buttons. MySQL Workbench and pgAdmin are the brand remotes. DBeaver is the universal one.
Watch it happen
Pick a client
Workbench or pgAdmin
- Made for one database: MySQL or PostgreSQL
- Free and built by the database's own community
- Deep admin tools for that database
- Need a second tool if you switch databases
DBeaver
- One app for PostgreSQL, MySQL, SQL Server, SQLite and more
- Free community edition
- Same editor and shortcuts everywhere
- Fewer database-specific admin extras
Learning one database? Its own client is fine. Working with several, or unsure? Start with DBeaver.
The big ideas
What you need to know
Client and server are separate
The database server stores data. The client only sends queries and shows results. Closing the client doesn't stop the server.
Five connection details
Host, port, database name, username and password. PostgreSQL uses port 5432 by default, MySQL uses 3306.
Command line works too
psql and the mysql command are text clients. They are handy on servers with no screen.
Run selected text
Most clients run only the highlighted statement. Select one query before pressing Run to avoid running the whole file.
How it works
Connecting for the first time
- 1
New connection
Choose the database type, such as PostgreSQL.
- 2
Fill details
Host localhost, port 5432, your database name and user.
- 3
Test connection
Fix any error now: wrong port, wrong password or server not running.
- 4
Open an editor
Run a tiny query to confirm everything works.
See it in code
Walk through the code
1-- Run these right after connecting2SELECT version();3SELECT current_database(), current_user;4SELECT CURRENT_DATE AS today;1/3Shows which database server and version you are talking to.
Three quick checks in PostgreSQL. In MySQL use SELECT VERSION(), DATABASE(), CURRENT_USER(); instead.
Save yourself the pain
Common mistakes
Oops
Running a whole script by pressing Run when you meant to run one line.
Do this instead
Highlight the single statement first, or use the client's "run current statement" shortcut.
Oops
Assuming the client is broken when it can't connect.
Do this instead
Check the server is running and the port is right. The client can't reach a server that isn't started.
Your mission
Connect two ways
Quick check
Your client shows "connection refused" on port 5432. What is the most likely cause?
Go deeper
- 1Connect your client to your local database and run SELECT 1.
- 2Learn the shortcut to run only the highlighted query.
- 3Save your practice queries in .sql files grouped by topic.
More topics at this stop
Stuck on this topic? Ask an Insider
Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.