0

I have a similar problem from this question How to dump remote database without mysqldump?

How ever when I run

 ssh -f L 3306:localhost:3306 user@remoteserver -N

I am receive the following error

bind: Address already in use
channel_setup_fwd_listener: cannot listen to port: 3306
Could not result local forwarding
Yusuf Ali
  • 7
  • 2

1 Answers1

1

You are likely already running a local MySQL server that's using port 3306.

You can just change the local port for the tunneling like so:

  ssh -f -L 33306:localhost:3306 user@remoteserver -N

but of course you must point your local tools to port 33306 then.

Sven
  • 97,248
  • 13
  • 177
  • 225