MySQL version used is 5.7, MySQL's GTID refers to the global transaction ID (global transaction identifier)
### Cause: java.sql.SQLException: Statement violates GTID consistency: Updates to non-transactional tables can only be done in either autocommitted statements or single-statement transactions, and never in the same statement as updates to transactional tables.
Literally means violation of service rules, I did not think the reasons in detail. Dalian Steel Works http://dljunxiang.com/
Reference views online, find new MySQL database using a MyISAM mode, this mode does not support transactions. Changed InnoDB, InnoDB provides transaction support, and support for foreign keys, and row-level locking and other advanced features.
Reproduced in: https: //blog.51cto.com/14231577/2407630