Q132284591 发表于 2018-10-2 12:42:52

MySQL学习笔记之六:MySQL日志

MariaDB [(none)]> show global variables like '%log%';  
+-------------------------------------------+--------------------------------------------------------------------------------------------------------------+
  
| Variable_name                           | Value                                                                                                      |
  
+-------------------------------------------+--------------------------------------------------------------------------------------------------------------+
  
...
  
...
  
| binlog_annotate_row_events                | OFF                                                                                                          |
  
| binlog_cache_size                         | 32768                                                                                                      |
  
| binlog_checksum                           | NONE                                                                                                         |
  
| binlog_commit_wait_count                  | 0                                                                                                            |
  
| binlog_commit_wait_usec                   | 100000                                                                                                       |
  
| binlog_direct_non_transactional_updates   | OFF                                                                                                          |
  
| binlog_format                           | MIXED                                                                                                      |
  
| binlog_optimize_thread_scheduling         | ON                                                                                                         |
  
| binlog_stmt_cache_size                  | 32768                                                                                                      |
  
| expire_logs_days                        | 0                                                                                                            |
  
| general_log                               | OFF                                                                                                          |
  
| general_log_file                        | node1.log                                                                                                    |
  
| gtid_binlog_pos                           | 0-1-2218                                                                                                   |
  
| gtid_binlog_state                         | 0-1-2218                                                                                                   |
  
| innodb_api_enable_binlog                  | OFF                                                                                                          |
  
| innodb_flush_log_at_timeout               | 1                                                                                                            |
  
| innodb_flush_log_at_trx_commit            | 1
  
...
  
...


页: [1]
查看完整版本: MySQL学习笔记之六:MySQL日志