Oracle/MySQL °ü·Ã °Ô½ÃÆÇ

2020/06/15(20:37) from 116.67.28.78
ÀÛ¼ºÀÚ : ÁÖÀÎÀå Á¶È¸¼ö : 2031 , ÁÙ¼ö : 36
[MySQL] general_log ¼³Á¤
1. ½Ç½Ã°£ ¼³Á¤

mysql> show variables like '%general%';
+------------------+--------------------------------------------+
| Variable_name    | Value                                      |
+------------------+--------------------------------------------+
| general_log      | OFF                                        |
| general_log_file | D:\APM_Setup\Server\MySQL5\data\Galaxy.log |
+------------------+--------------------------------------------+
2 rows in set (0.00 sec)

mysql> set global general_log=on;
Query OK, 0 rows affected (0.00 sec)

mysql> show variables like '%general%';
+------------------+--------------------------------------------+
| Variable_name    | Value                                      |
+------------------+--------------------------------------------+
| general_log      | ON                                         |
| general_log_file | D:\APM_Setup\Server\MySQL5\data\Galaxy.log |
+------------------+--------------------------------------------+
2 rows in set (0.00 sec)

mysql> set global general_log=1;
Query OK, 0 rows affected (0.00 sec)

mysql> set global general_log=off;
Query OK, 0 rows affected (0.00 sec)



2. ¿µ±¸Àû ¼³Á¤

my.cnf (my.ini) ÆíÁý

general_log = 1

Modify Delete Post Reply Backward Forward List
Powered by Kang Jul Ki