Fixed a bug in mysql build sequence