Bug #6246 | mysql command line client uses socket connection when --host=localhost & --port | ||
---|---|---|---|
Submitted: | 25 Oct 2004 16:06 | Modified: | 25 Oct 2004 17:31 |
Reporter: | David Mohr | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
Version: | 4.0.20 | OS: | Linux (Debian Linux) |
Assigned to: | CPU Architecture: | Any |
[25 Oct 2004 16:06]
David Mohr
[25 Oct 2004 17:31]
MySQL Verification Team
This is expected behaviour, as per our manual. Try --host=127.0.0.1
[7 Aug 2006 16:38]
Kevin Benton
IMNSHO, this is a bad idea. I would hope that the API would sense that the user specified a port number and if the socket didn't exist, attempt to connect via TCP/IP. If both methods fail, then the API should return an error message.