innodb-錯誤處理

錯誤處理

1.如果表空間滿了,innodb會回滾整個事務

If you run out of file space in a tablespace, a MySQL Table is full error occurs and InnoDB rolls back the SQL statement.

2.死鎖會導致innod回滾整個事務

A transaction deadlock causes InnoDB to roll back the entire transaction

3.鎖等待超時會導致innodb只回滾超時的那條sql,如果想回滾整個事務,可以啓用innodb-rollback-on-timeout參數,如果啓用該參數,重試也會重試整個事務

A lock wait timeout causes InnoDB to roll back only the single statement that was waiting for the lock and encountered the timeout.
To have the entire transaction roll back, start the server with the --innodb-rollback-on-timeout option.
Retry the statement if using the current behavior, or the entire transaction if using --innodb-rollback-on-timeout.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章