71 lines
1.5 KiB
Markdown
71 lines
1.5 KiB
Markdown
# TablePlus (Paid) or Sequel Ace (Free) + SSH Tunnel Guide (MySQL)
|
||
|
||
This is a complete, step‑by‑step guide to access your **internal Coolify MySQL** from your Mac using **SSH tunnel + TablePlus or Sequel Ace**.
|
||
|
||
## 1) Install a GUI client
|
||
|
||
Choose one:
|
||
|
||
### Option A — Sequel Ace (Free)
|
||
```bash
|
||
brew install --cask sequel-ace
|
||
```
|
||
|
||
### Option B — TablePlus (Trial/paid)
|
||
|
||
Pick one method:
|
||
|
||
**Option A — Homebrew**
|
||
```bash
|
||
brew install --cask tableplus
|
||
```
|
||
|
||
**Option B — Download App**
|
||
- Download from TablePlus website and install normally.
|
||
|
||
## 2) Create the SSH tunnel (Mac Terminal)
|
||
|
||
Replace `USER` and `YOUR_SERVER` with your SSH credentials:
|
||
|
||
```bash
|
||
ssh -N -L 3307:127.0.0.1:3306 USER@YOUR_SERVER
|
||
```
|
||
|
||
Keep this terminal **open** while you use TablePlus.
|
||
If you close it, the tunnel disconnects.
|
||
|
||
## 3) Open TablePlus or Sequel Ace and create connection
|
||
|
||
In the app:
|
||
1) Click **Create a new connection**
|
||
2) Choose **MySQL**
|
||
3) Fill in:
|
||
- **Name:** Dewemoji (or anything)
|
||
- **Host:** `127.0.0.1`
|
||
- **Port:** `3307`
|
||
- **User:** `dewesql` (or your MySQL user)
|
||
- **Password:** (your MySQL password)
|
||
- **Database:** `dewemoji` (or your DB name)
|
||
|
||
4) Click **Test** → should be green
|
||
5) Click **Connect**
|
||
|
||
## 4) Done
|
||
|
||
You now have full GUI access to the internal MySQL.
|
||
|
||
## Troubleshooting
|
||
|
||
**“Connection refused”**
|
||
- Tunnel not running (step 2). Keep it open.
|
||
|
||
**“Access denied”**
|
||
- Wrong MySQL username/password.
|
||
|
||
**No tables**
|
||
- Wrong database name.
|
||
|
||
---
|
||
|
||
If you want, I can add a short “quick commands” section for `mysql` CLI too.
|