Fix bug in mysql connection listener

Change-Id: I38d138a996c2059a292cf6d6f966e35149dd094e