Bug #87913 '--symbolic-links/-s' is deprecated message should be more helpful
Submitted: 29 Sep 2017 11:30 Modified: 6 Oct 2017 13:00
Reporter: Terje Røsten Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.3 OS:Any
Assigned to: CPU Architecture:Any

[29 Sep 2017 11:30] Terje Røsten
Description:
Message:

[Warning] The syntax '--symbolic-links/-s' is deprecated and will be removed in a future release

is the same regardless of --symbolic-links or --skip-symbolic-links 

(in my.cnf: symbolic-links=0 or symbolic-links=1)

How to repeat:
Start server with

--symbolic-links (or my.cnf setting symbolic-links=1)

or

--skip-symbolic-links (or my.cnf setting symbolic-links=0)

Suggested fix:
When 

--symbolic-links (or my.cnf setting symbolic-links=1)

say:

[Warning] The syntax '--symbolic-links/-s' and enabling symbolic links option is deprecated and will be removed in a future release.

when

--skip-symbolic-links or (or my.cnf setting symbolic-links=0)

say

[Warning] '--skip-symbolic-links' or disabling symbolic-links option is default. Consider to stop using option, will be removed in future release.
[29 Sep 2017 11:33] Terje Røsten
Posted by developer:
 
When fixing, please remove references and comments in pacakaging:

$ grep -r symbolic-links packaging
packaging/rpm-docker/my.cnf.in:# Disabling symbolic-links is recommended to prevent assorted security risks
packaging/rpm-docker/my.cnf.in:symbolic-links=0
packaging/deb-in/extra/mysqld.cnf:# Disabling symbolic-links is recommended to prevent assorted security risks
packaging/deb-in/extra/mysqld.cnf:symbolic-links=0
packaging/rpm-common/my.cnf.in:# Disabling symbolic-links is recommended to prevent assorted security risks
packaging/rpm-common/my.cnf.in:symbolic-links=0
[6 Oct 2017 13:00] Paul DuBois
Posted by developer:
 
Fixed in 8.0.4, 9.0.0.

The deprecation warnings were clarified regarding use of the
--symbolic-links and --skip-symbolic-links server options (and their
equivalents). The server no longer warns about a missing data
directory when invoked with the --help option.