Support empty `DB_CHARSET` value when running MySQL commands

See #1143