Fix the mysql read-only issue.