[core] Various fixes for mysql woso.