I'm trying to use mysql (command line utility) to connect to mysql server through SSH tunnel. The problem is this mysql client won't use my specified port. For example, I ran this: $ mysql -uroot --port=1234
And it then just connected to port 3306.
Why does it do that?
How can I force this client to connect to port 1234 (then it should show me that port 1234 is not connectible).