Fixed #22646: mysql dbshell uses the ssl-ca option

when present in the settings.DATABASES OPTIONS. Also added the missing
regression tests for the other options.