fix mysql adapter