Notice
Recent Posts
Recent Comments
Link
250x250
반응형
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 티스토리챌린지
- PROFILE EXPDP
- 오블완
- num_index_keys
- 리눅스
- 데이터csv생성
- 오라클기동
- job관리
- datadir 변경
- 오라클인덱스힌트
- sqlp합격후기
- 오라클
- mariaDB설치오류
- oracle
- postgreql 오브젝트 조회
- 대량dml튜닝
- autocommit설정
- 통계정보백업
- sqlp공부방법
- ssh접속오류
- Connect Storage Engine
- mariaDB
- 통계정보복구
- inlist
- sqlp시험일정
- MariaDB기본디렉토리변경
- public synonym EXPDP
- Linux
- 실제플랜조회
- DATABASELINK
Archives
- Today
- Total
IT study
[MySQL] AutoCommit 설정 값 조회 및 변경 본문
728x90
반응형
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)
728x90
반응형
'DATABASE > Mysql MariaDB' 카테고리의 다른 글
[RDS for MySQL] Active/Active 클러스터 생성 ( 그룹 복제 플러그인 사용 ) (0) | 2025.05.27 |
---|---|
[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 |