On connection 'localhost' fails but '127.0.0.1' suceeds
Brought to you by:
lorenztextor,
skrysakj
Hi there,
CocoaMySQL appears to ignore a non-standard port when
'localhost' is given as the hostname. Tested on 0.7b4.
To reproduce the problem:
1. Create a new session
2. Setup port forwarding (ssh -L 8888:localhost:3306 ...)
3. Enter 'localhost' and '8888' in your descriptor with
your username and password, and it fails.
4. Change 'localhost' to 127.0.0.1 and it succeeds.
Note that if you're running a local mysql server on
port 3306 it'll still attempt to connect to that if
'localhost' is specified, even if port 8888 is specified.
Logged In: YES
user_id=1131018
Originator: NO
This is not a bug. When specifying localhost the connection is routed via a socket, but when via 127.0.0.1 it goes to a port. This behavior also occurs when using mysql on the command line.
This bug report should be considered closed.