Fix connection attribute notice error on mysql driver