adapt to mysql (1)