Bug #31832 mysql executable ignores --protocol when $MYSQL_HOST is set
| Submitted: | 25 Oct 2007 6:52 | Modified: | 19 May 2009 1:21 |
|---|---|---|---|
| Reporter: | Paul Rivers (Candidate Quality Contributor) | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Command-line Clients | Severity: | S3 (Non-critical) |
| Version: | 5.0.41, 5.0, 5.1 BK | OS: | Linux |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | qc | ||
[25 Oct 2007 6:52]
Paul Rivers
[25 Oct 2007 7:01]
Paul Rivers
I'm sorry, it's late here, and I realize my description is poorly worded. Please consider this the description instead: When the environment variable MYSQL_HOST is set, the client utility mysql will fail to connect to the instance if a socket connection is asked for via --protocol=socket.
[25 Oct 2007 10:40]
Sveta Smirnova
Thank you for the report. Verified as described.
[19 May 2009 1:07]
Jim Winstead
The problem here is that if MYSQL_HOST is anything other than 'localhost', it will fail because UNIX sockets can't be used to connect to any other host. A more useful error message should probably be returned.
[19 May 2009 1:21]
Paul Rivers
Why would $MYSQL_HOST be confined to a UNIX socket file, and not for example obviate the need to specify -h to the mysql command line client? This would seem more intuitive and useful.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.042 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.