

This means that as soon as you execute a statement that updates (modifies) a table, MariaDB stores the update on disk to make it permanent. autocommitīy default, MariaDB runs with autocommit mode enabled. READ WRITE and READ ONLY can also be specified in the SET TRANSACTION statement, in which case the specified mode is valid for all sessions, or for all subsequent transaction used by the current session. It is not permitted to specify both READ WRITE and READ ONLY in the same statement. Note that unlike the global read_only mode, READ_ONLY ADMIN (and SUPER before MariaDB 10.11.0) privilege doesn't allow writes and DDL statements on temporary tables are not allowed either. READ ONLY mode allows the storage engine to apply optimizations that cannot be used for transactions which write data. By default, transactions are in READ WRITE mode (see the tx_read_only system variable). The access mode specifies whether the transaction is allowed to write data or not. Useful if the completion_type system variable is set to cause chaining or release completion by default. Including the NO keyword suppressesĬHAIN or RELEASE completion, which can be The RELEASE clauseĬauses the server to disconnect the current client session after terminating Level as the just-terminated transaction. Soon as the current one ends, and the new transaction has the same isolation The AND CHAIN clause causes a new transaction to begin as The value of theĬompletion_type system variable determines the default completion behavior. The optional WORK keyword is supported forĪdditional control over transaction completion. START TRANSACTION and SET autocommit = 1 implicitly commit the current transaction, if any. The SET autocommit statement disables or enables the default autocommit mode for the current session. ROLLBACK rollsīack the current transaction, canceling its changes. Transaction, making its changes permanent.
