"MySQL 환경변수 확인"의 두 판 사이의 차이

12번째 줄: 12번째 줄:
</source>
</source>


==목록 보기==
==전체 목록==
<source lang='console'>
<source lang='console'>
mysql> SHOW VARIABLES;
mysql> SHOW VARIABLES;
25번째 줄: 25번째 줄:
+-----------------------------------------+-------------------------------------------------------------------------------------------+
+-----------------------------------------+-------------------------------------------------------------------------------------------+
277 rows in set (0.00 sec)
277 rows in set (0.00 sec)
</source>
==LIKE 조건==
<source lang='console'>
mysql> SHOW VARIABLES LIKE 'auto_%';
+--------------------------+-------+
| Variable_name            | Value |
+--------------------------+-------+
| auto_increment_increment | 1    |
| auto_increment_offset    | 1    |
| autocommit              | ON    |
| automatic_sp_privileges  | ON    |
+--------------------------+-------+
4 rows in set (0.00 sec)
</source>
<source lang='console'>
mysql> SHOW VARIABLES LIKE 'auto\_%';
+--------------------------+-------+
| Variable_name            | Value |
+--------------------------+-------+
| auto_increment_increment | 1    |
| auto_increment_offset    | 1    |
+--------------------------+-------+
2 rows in set (0.00 sec)
</source>
</source>



2016년 11월 21일 (월) 09:38 판

MySQL 환경변수 확인

1 1개 보기

mysql> SELECT @@auto_increment_increment;
+----------------------------+
| @@auto_increment_increment |
+----------------------------+
|                          1 |
+----------------------------+
1 row in set (0.00 sec)

2 전체 목록

mysql> SHOW VARIABLES;
+-----------------------------------------+-------------------------------------------------------------------------------------------+
| Variable_name                           | Value                                                                                     |
+-----------------------------------------+-------------------------------------------------------------------------------------------+
| auto_increment_increment                | 1                                                                                         |
| auto_increment_offset                   | 1                                                                                         |
| autocommit                              | ON                                                                                        |
... (생략)
| warning_count                           | 0                                                                                         |
+-----------------------------------------+-------------------------------------------------------------------------------------------+
277 rows in set (0.00 sec)

3 LIKE 조건

mysql> SHOW VARIABLES LIKE 'auto_%';
+--------------------------+-------+
| Variable_name            | Value |
+--------------------------+-------+
| auto_increment_increment | 1     |
| auto_increment_offset    | 1     |
| autocommit               | ON    |
| automatic_sp_privileges  | ON    |
+--------------------------+-------+
4 rows in set (0.00 sec)
mysql> SHOW VARIABLES LIKE 'auto\_%';
+--------------------------+-------+
| Variable_name            | Value |
+--------------------------+-------+
| auto_increment_increment | 1     |
| auto_increment_offset    | 1     |
+--------------------------+-------+
2 rows in set (0.00 sec)

4 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}