Bug #114786 Inaccurate documentation for '--compatible' command line option of mysqldump
Submitted: 25 Apr 2024 12:44 Modified: 25 Apr 2024 12:56
Reporter: Nikita Radchenko Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:ALL OS:Any
Assigned to: CPU Architecture:Any

[25 Apr 2024 12:44] Nikita Radchenko
Description:
1. For 5.7, the explanation mentions 'no_key_options and 'no_field_options' as valid values for '--compatible'; however, the "Valid Values" table row doesn't list the latter at all, but lists 'no_key_options' twice.
2. For 8.0, the explanation mentions 'ansi' as the only valid value for '--compatible'; however, the table lists the same erroneous list of options as for 5.7.

How to repeat:
1. https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_compatible
2. https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html#option_mysqldump_compatible
3. mysqldump man page

Suggested fix:
Fix the documentation so it describes actual valid values for the option. Probably some other options are described wrong too, and also should be fixed.
[25 Apr 2024 12:56] MySQL Verification Team
Hi Mr. Radchenko,

Thank you for your documentation bug report.

Since 5.7 is no longer maintained, this is now a verified documentation bug for 8.0 and above.
[6 May 2024 13:56] Jon Stephens
--help output for "compatible" from 8.4 mysqldump:

  --compatible=name   Change the dump to be compatible with a given mode. By
                      default tables are dumped in a format optimized for
                      MySQL. The only legal mode is ANSI.Note: Requires MySQL
                      server version 4.1.0 or higher. This option is ignored
                      with earlier server versions.

This appears to be old/wrong and needs to be fixed. When this is fixed and put in Documenting, please make it clear to Docs where current/correct info can be found about valid values. Thanks!
[9 May 2024 9:42] MySQL Verification Team
Thank you, Jon.