now mysql automatically works