util/mysql: set reconnet option before real_connect

Otherwise it does not have any effect