Bug 863268: better support for mysql; r=catlee