Symbolize variables of mysql/mysql2 connection configuration

In order to customize sql_mode, fixed bug with setting strict mode,
even sql_mode already was defined in connection configuration.

Fixes #14895