In MySQL some configuration options use _
and some use -
. Is there any way to easily identify when to use one versus the other?.
No.
It's just one of those things that happen when a team of people design a product.
Different conventions get used leading to inconsistency.
See here: http://dev.mysql.com/doc/refman/5.5/en/mysqld-option-tables.html
And scroll to the options starting with ssl
, you'll see what I mean.
According to the suggestion in the mysql bug report discussing the confusing state of the mysql docs:
- The
my.cnf
and command line options you can use either_
or-
within the option name.- Server variables are
_
only when working with the MySQL client (modifying from SET for example).
In summary, you can use _
and -
interchangeably within a config file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With