Error modifying MySQL table engine type

Source: Internet
Author: User

The default MySQL engine type is MyISAM,

mysql>showengines;

The transaction isolation mechanism is: read-committed (/etc/my.cnf view)

Default Build table if the engine type is not specified, it is automatically myisam. You want to change the table to InnoDB type at this time. The user logs on to the MySQL client to perform:
Mysql>alter table ATT engine =innodb;

The error:
ERROR 1598 (HY000): Binary logging not possible. Message:transaction level ' read-committed ' in InnoDB are not safe for binlogmode ' STATEMENT '.

Workaround:
Run the command: SET SESSION TRANSACTION isolation level repeatableread;

The above method is not a cure for symptoms!
This method forcibly modifies the engine type of the table, causes the table to insert data to fail, and still prompts the error:
Binary logging not possible. Message:transaction level ' read-committed ' in InnoDB are not safe for Binlog mode ' STATEMENT '.
Workaround:/etc/my.cnf Add Parameters:
Binlog_format =row
Innodb_locks_unsafe_for_binlog =1


Error modifying MySQL table engine type

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.