MySQL has server variables named
new variable can be set per-session and
globally, and is dynamic. The
old variable is not
dynamic, and only global in scope. Both default to FALSE in MySQL
According to the manual, the
was used in MySQL 4.0 to turn on some 4.1 behaviors, and is retained for backward compatibility.
That same page notes the following about the
when old is enabled, it changes the default scope of index hints to that used prior to MySQL 5.1.17. That is, index hints with no FOR clause apply only to how indexes are used for row retrieval and not to resolution of ORDER BY or GROUP BY clauses.
That’s right — the …[Read more]