fix deprecation error for mysql adapter