Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- postgreql 오브젝트 조회
- sqlp합격후기
- DATABASELINK
- sqlp시험일정
- 통계정보복구
- autocommit설정
- ssh접속오류
- datadir 변경
- 오라클기동
- mariaDB설치오류
- 대량dml튜닝
- 데이터csv생성
- MariaDB기본디렉토리변경
- 티스토리챌린지
- 오라클
- PROFILE EXPDP
- num_index_keys
- 통계정보백업
- 오라클인덱스힌트
- sqlp공부방법
- Connect Storage Engine
- 오블완
- Linux
- inlist
- job관리
- oracle
- 실제플랜조회
- 리눅스
- public synonym EXPDP
- mariaDB
Archives
- Today
- Total
IT study
[MySQL] AutoCommit 설정 값 조회 및 변경 본문
1. AutoCommit 설정값 조회
1) select @@autocommit; --1:true, 0:false
2) show variables like 'autocommit';
2. AutoCommit 설정값 변경
1) 세션단위 변경 : set autocommit = false / true;
2) DB레벨 변경 :
/etc/my.cnf.d/server.cnf > autocommit 값 변경 - 0:autocommit 해제 , 1 : autocommit 설정
mysql> select @@autocommit;
+--------------+
| @@autocommit |
+--------------+
| 1 |
+--------------+
1 row in set (0.00 sec)
mysql> show variables like 'autocommit';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| autocommit | ON |
+---------------+-------+
1 row in set (0.00 sec)
mysql> set autocommit = false;
Query OK, 0 rows affected (0.00 sec)
mysql> show variables like 'autocommit';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| autocommit | OFF |
+---------------+-------+
1 row in set (0.00 sec)
'DATABASE > Mysql MariaDB' 카테고리의 다른 글
[MySQL] MySQL 8.4 의 변화 (0) | 2025.03.27 |
---|---|
[MariaDB] CONNECT Engine 설치 및 ORACLE , MSSQL 연결하기 (1) | 2024.01.26 |
[MariaDB] 기본 디렉토리 datadir 변경하기 (CentOS7) (1) | 2024.01.24 |
[MariaDB] CentOS MariaDB 설치 Requires: pv 에러 발생 (0) | 2024.01.19 |
[MariaDB] CentOS 7 - MariaDB 특정 버전 설치하기, 원격 접속 설정 (1) | 2023.02.23 |