Symbolize variables of mysql/mysql2 connection configuration

In order to customize `sql_mode`, fixed bug with setting strict mode,
when `sql_mode` already has been defined in connection configuration.

Fixes #14895