Guides
How to View MySQL Tables Without phpMyAdmin on Windows
How to reach a hosted MySQL database from Windows without phpMyAdmin: remote access, SSH tunnels, desktop clients and security.
Connect to the database from a desktop client on your PC, such as HeidiSQL, MySQL Workbench or DBeaver, or run the mysql command-line client. The hard part is rarely the tool but getting a connection at all, because most shared hosts block remote MySQL by default. Either add your IP address to the host's remote access list or, better, tunnel the connection through SSH.
phpMyAdmin is the default database tool on most shared hosting, but it is not always the most pleasant one. Large tables time out, sessions expire, and some hosts do not offer it at all.
This guide is for small-site owners and PHP developers on Windows who want to look at their MySQL tables another way.
First, find out how your host allows connections
Before installing anything, check which of these three situations you are in. It decides everything else.
- Remote MySQL is allowed after you add your IP. In cPanel the screen is called Remote Database Access (it was named “Remote MySQL” up to cPanel version 118). You add a hostname or IP address, and that address can then reach MySQL on port 3306. The
%character works as a wildcard, but resist the temptation to add%on its own, which means “any address on the internet”. Your host can also switch this screen off entirely. - Remote MySQL is disabled, but you have SSH. Many shared hosts turn off direct database connections for security or compliance reasons. Kualo, for example, says so outright and points customers to SSH tunnelling instead. If your plan includes SSH (you may need to enable it in the panel), you are in good shape.
- No remote MySQL and no SSH. Common on the cheapest plans. A desktop client cannot reach the database from outside. Your options are the host’s own tools, or a single-file web tool such as Adminer that you upload temporarily (more on that in the FAQ).
You also need the database name, the database user and its password. On cPanel these usually carry your account prefix, for example acme_shop and acme_reader.
Why an SSH tunnel is the better route
An SSH tunnel forwards a port on your PC to the MySQL server through an encrypted SSH session. Your client thinks it is talking to a local database, while MySQL on the server only ever sees a connection from localhost. That means:
- port 3306 can stay closed to the internet,
- your password and query results travel encrypted,
- you do not need to update an IP allowlist every time your home IP changes.
Most GUI clients below can open the tunnel for you. If one cannot, you can open it yourself from a Windows terminal. Windows 10 and 11 include an OpenSSH client as an optional feature (check Settings > Optional features if ssh is not recognised):
ssh -N -L 3307:127.0.0.1:3306 [email protected] -p 22
Leave that window open, then point any MySQL client at host 127.0.0.1, port 3307. Use your host’s SSH port instead of 22 if it differs. If you already have SSH, the quickest look at a table needs no tunnel at all: log in with ssh and run mysql -u acme_reader -p acme_shop directly on the server.
Tools for viewing MySQL tables on Windows
All four tools below are free. Facts are as of late 2026.
| Tool | Licence | Platforms | Built-in SSH tunnel | Best for |
|---|---|---|---|---|
| HeidiSQL | Open source (GPL) | Windows, Linux, macOS (Apple silicon) | Yes (plink.exe or ssh.exe) | Fast, light browsing and editing |
| MySQL Workbench | Community Edition, GPL | Windows, macOS, Linux | Yes (“Standard TCP/IP over SSH”) | Official MySQL tool, modelling |
| DBeaver Community | Open source (Apache 2.0) | Multiplatform | Yes (SSH tab) | Many database types in one app |
mysql CLI | Ships with MySQL | Everywhere | No (use ssh -L) | Quick queries, scripts |
HeidiSQL
HeidiSQL is the closest thing to “phpMyAdmin, but as a fast Windows program”. It connects to MariaDB, MySQL, SQL Server, PostgreSQL, SQLite and a few others. You can browse and edit table data in a grid and export SQL dumps. For a tunnel, choose the SSH tunnel network type and fill in the SSH tab. HeidiSQL uses PuTTY’s plink.exe (the installer puts it in place) or Microsoft’s OpenSSH ssh.exe, plus a free local port such as 3307. It is the lightest option here and the one we would suggest first to most small-site owners.
MySQL Workbench
Workbench is Oracle’s official MySQL GUI. Beyond browsing tables it does visual schema design, server administration and query profiling. To use a tunnel, pick the Standard TCP/IP over SSH connection method and enter the SSH host, username and password or key file. One catch: Workbench does not read PuTTY .ppk keys directly, so convert the key to OpenSSH format with PuTTYgen first. It is heavier than HeidiSQL, but it is the right pick if you also design schemas or manage your own MySQL server.
DBeaver Community
DBeaver connects to almost anything with a JDBC driver, which makes it a good fit if you also work with PostgreSQL, SQLite or others. In the connection dialog, add an SSH tab, enter host, port (default 22), user and an authentication method (password, public key or agent), test the tunnel, then set the host on the Main tab to localhost. It is also the largest download of the four.
The mysql command-line client
Sometimes all you need is SHOW TABLES; and SELECT * FROM orders ORDER BY id DESC LIMIT 20;. On Windows the mysql.exe client comes with Oracle’s MySQL packages for Windows (the MSI or the no-install ZIP archive). With a tunnel open, run mysql -h 127.0.0.1 -P 3307 -u acme_reader -p acme_shop.
Spider V6: browsing the database from your code editor
If you already write your PHP in an editor, it can help to look at the data in the same window. Our own editor, Spider V6 for Windows 10 and 11, includes a MySQL inspector and database management center. You can run SQL queries directly from the editor, put them together with a SQL query builder, and export data to HTML, XML, CSV, RTF or SQL. The built-in terminal is a convenient place to run the ssh -L command above, and SFTP publishing sits in the same program as the code.
To be fair about the limits: Spider V6 is a code editor with database tools, not a dedicated database administration suite. If you mainly design schemas or manage servers, Workbench or DBeaver will serve you better. Spider is Windows-only, and the full feature set is paid after a 7-day trial. The MySQL tools are a premium feature ($33.95 perpetual or $19.95 per year, net of VAT), so the free basic version is not the right fit for this job.
Security checklist
- Do not open port 3306 to the world. A MySQL port reachable from any IP gets constant password-guessing traffic. Prefer an SSH tunnel. If you must use an IP allowlist, add only your current address and remove it when you are done.
- Use a least-privilege user for browsing. Create a separate database user that only has
SELECTon the one database you need to view. Your application’s user, which can also write and delete, does not belong in a desktop client you leave open all day. - Restrict the account’s host part. MySQL accounts are named
'user'@'host'. An account without a host part is the same as'user'@'%', meaning any host. When you tunnel, the connection arrives fromlocalhost, so the account does not need remote access at all. - Prefer SSH keys over passwords. Most clients support key files. Protect the key with a passphrase.
- Check the host key on first connect. Accept the server’s fingerprint only if you expected the prompt, and question a “host key has changed” warning before clicking through.
- Watch what you click in grids. GUI clients make it very easy to edit a cell and save. On production data, use the read-only user, or at least back up the table first.
Frequently asked questions
Can I view MySQL tables if my host blocks remote access and has no SSH?
Not from a desktop client. Use the host’s own database tool, or upload Adminer, a database manager in a single PHP file, for the moment you need it. Adminer’s authors recommend keeping it away from public access (IP restriction or extra password protection), and since it is one file, delete it when you are finished.
What port should I connect to?
MySQL listens on 3306 by default. Through an SSH tunnel you connect to the local port you chose (for example 3307 on 127.0.0.1), and the tunnel itself uses your host’s SSH port, usually 22.
Do these tools work with MariaDB?
Yes. Many shared hosts run MariaDB rather than MySQL. HeidiSQL and DBeaver list MariaDB explicitly, and the standard mysql client connects to it for everyday queries.
Is MySQL Workbench or HeidiSQL better on Windows?
For browsing and editing tables, HeidiSQL is lighter and quicker to set up. For schema design, server administration and the official MySQL tooling, Workbench wins.