Skip to main content

tuna mysql

Start a MySQL tunnel.

Guide with examples: MySQL.

Usage
tuna mysql [port] [flags]
Examples
tuna mysql
tuna mysql 3306
tuna mysql 10.0.0.1:3306
tuna mysql 3306 --port=mysql
tuna mysql 3306 --port=35000
FlagDescription
--api-key stringYour tuna.am api key with the tunnels:connect scope (env TUNA_API_KEY).
--cidr-allow stringReject connections that do not match the given CIDRs. Can be repeated.
--cidr-deny stringReject connections that match the given CIDRs. Can be repeated.
--inspect-port intInspector port, the tunnel fails if it is busy (also TUNA_INSPECT_PORT).
-p, --port stringPort for incoming connections.
--qrGenerate and show QR code.

Global flags work too.