Bug #82754 URL in help text doesn't work
Submitted: 27 Aug 2016 20:10 Modified: 28 Aug 2016 6:25
Reporter: Daniël van Eeden (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:5.7.14 OS:Any
Assigned to: CPU Architecture:Any

[27 Aug 2016 20:10] Daniël van Eeden
Description:
The 'help' command returns (among others) this url: 
https://shop.mysql.com/

This URL doesn't seem to work.
If I change https to http I get redirected to some oracle page.

How to repeat:
mysql [localhost] {msandbox} ((none)) > help;

For information about MySQL products and services, visit:
   http://www.mysql.com/
For developer information, including the MySQL Reference Manual, visit:
   http://dev.mysql.com/
To buy MySQL Enterprise support, training, or other products, visit:
   https://shop.mysql.com/

List of all MySQL commands:
Note that all text commands must be first on line and end with ';'
?         (\?) Synonym for `help'.
clear     (\c) Clear the current input statement.
connect   (\r) Reconnect to the server. Optional arguments are db and host.
delimiter (\d) Set statement delimiter.
edit      (\e) Edit command with $EDITOR.
ego       (\G) Send command to mysql server, display result vertically.
exit      (\q) Exit mysql. Same as quit.
go        (\g) Send command to mysql server.
help      (\h) Display this help.
nopager   (\n) Disable pager, print to stdout.
notee     (\t) Don't write into outfile.
pager     (\P) Set PAGER [to_pager]. Print the query results via PAGER.
print     (\p) Print current command.
prompt    (\R) Change your mysql prompt.
quit      (\q) Quit mysql.
rehash    (\#) Rebuild completion hash.
source    (\.) Execute an SQL script file. Takes a file name as an argument.
status    (\s) Get status information from the server.
system    (\!) Execute a system shell command.
tee       (\T) Set outfile [to_outfile]. Append everything into given outfile.
use       (\u) Use another database. Takes database name as argument.
charset   (\C) Switch to another charset. Might be needed for processing binlog with multi-byte charsets.
warnings  (\W) Show warnings after every statement.
nowarning (\w) Don't show warnings after every statement.
resetconnection(\x) Clean session context.

For server side help, type 'help contents'

Suggested fix:
Ensure this page redirect to wherever I can buy support, training, products...
or remove it.
[28 Aug 2016 6:25] MySQL Verification Team
Thanks for the report!  Searching the source tree for 'shop.mysql.com' gives:

client/mysql.cc:           "   https://shop.mysql.com/\n", INFO_INFO);
[20 Apr 2017 10:36] Tsubasa Tanaka
This causes http://shop.mysql.com redirects https://shop.oracle.com but https://shop.mysql.com doesn't open port 443.

$ curl https://shop.mysql.com
curl: (7) Failed connect to shop.mysql.com:443; Connection refused

My suggestion to fix this, open 443 port for https://shop.mysql.com (and redirects https://shop.oracle.com)
And/or change URL to "http" scheme (see attached patch)
[20 Apr 2017 10:37] Tsubasa Tanaka
patch for 5.7.18

(*) I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it.

Contribution: bug82754.patch (application/octet-stream, text), 945 bytes.

[21 Apr 2017 7:48] Georgi Kodinov
Thank you for taking the effort to report this problem. However I'm not sure I agree with the fix, just because of the trend towards https. I'll try making the URL work instead.