fix incorret using mysql flags