The Java project reported a 500 error after opening the mysql binlog parameter:

Source: Internet
Author: User
Tags one table

Problem:

Cannot execute statement:impossible to write to binary log since Binlog_format = statement and at least one table uses a Storage Engine limited to row-based logging. InnoDB is limited to row-logging while transaction isolation level is read COMMITTED or READ uncommitted.

Thinking Process:

Combined with the Baidu discovery is the Java Transaction Working mode requirements of the log format for row, and I opened binlog after the operation mode is not specified, and MySQL default log working mode is statement mode,

can go into MySQL using show variables like "Binlog_format"; is to turn on Binlog unspecified format:

Workaround:

Modify the MY.CNF configuration file in the MYSQLD block add: Binlog_format = row parameter and restart the MySQL service.

Results:

To view the log format as row, the project can be accessed normally and the problem is resolved.

The Java project reported a 500 error after opening the mysql binlog parameter:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.