Home>Article>Database> How to check whether mysql is automatically submitted

How to check whether mysql is automatically submitted

coldplay.xixi
coldplay.xixi Original
2020-08-24 15:29:03 4599browse

Mysql How to check whether automatic submission: Check the autocommit status, the code is [set autocommit=on;] or [set autocommit=1;].

How to check whether mysql is automatically submitted

Mysql method to check whether automatic submission:

show variables like 'autocommit'(ON automatic submission OFF is not automatic submission and requires manual commit;)

Two ways to set mysql to automatically submit transactions and turn off automatic submission of transactions (mysql automatically submits transactions by default)

Automatically commit transactions

The first type is set autocommit=off;

How to check whether mysql is automatically submittedRelated learning recommendations:

mysql tutorial

The above is the detailed content of How to check whether mysql is automatically submitted. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn