Better support for MySQL 5.7. * avoid warning * add collations and constants from MySQL 5.7.10 * support JSON type on MySQL 5.7