Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

my.cnf.d/server.cnf configuration - dash or underscore

I'm using MySQL/MariaDB 10.0

In my server.cnf usually in the past I've used underscores for the majority of things in this configuration. I'm testing out a generated .cnf but it has dashes instead of underscores, do dashes work? example:

query-cache-type
query-cache-size

Usually I'd use _, will mysql accept and use these? I know SSL related is specific, but are these specific as well?

(note: I know there is a similar question to this but there was no real answer)

like image 713
Sven Kahn Avatar asked May 01 '15 00:05

Sven Kahn


1 Answers

Either one is fine. I personally use hyphens (-) for command line options and underscores (_) in config files.

like image 191
Nirbhay Choubey Avatar answered Oct 24 '22 09:10

Nirbhay Choubey