MT#7793 Fix mysql connect to use config params