mirror of
				https://github.com/veops/cmdb.git
				synced 2025-10-31 19:39:24 +08:00 
			
		
		
		
	* fix: Solving the timezone issue in Redis, as well as the problem of MySQL logs always being in UTC timezone. * fix: change the config path of slow_log into /tmp directory in mysqld.cnf file
		
			
				
	
	
		
			57 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			2.2 KiB
		
	
	
	
		
			INI
		
	
	
	
	
	
| # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
 | |
| #
 | |
| # This program is free software; you can redistribute it and/or modify
 | |
| # it under the terms of the GNU General Public License, version 2.0,
 | |
| # as published by the Free Software Foundation.
 | |
| #
 | |
| # This program is also distributed with certain software (including
 | |
| # but not limited to OpenSSL) that is licensed under separate terms,
 | |
| # as designated in a particular file or component or in included license
 | |
| # documentation.  The authors of MySQL hereby grant you an additional
 | |
| # permission to link the program and your derivative works with the
 | |
| # separately licensed software that they have included with MySQL.
 | |
| #
 | |
| # This program is distributed in the hope that it will be useful,
 | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of
 | |
| # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | |
| # GNU General Public License, version 2.0, for more details.
 | |
| #
 | |
| # You should have received a copy of the GNU General Public License
 | |
| # along with this program; if not, write to the Free Software
 | |
| # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
 | |
| 
 | |
| #
 | |
| # The MySQL  Server configuration file.
 | |
| #
 | |
| # For explanations see
 | |
| # http://dev.mysql.com/doc/mysql/en/server-system-variables.html
 | |
| 
 | |
| [mysqld]
 | |
| character-set-server = utf8
 | |
| collation-server = utf8_unicode_ci
 | |
| skip-character-set-client-handshake
 | |
| pid-file	= /var/run/mysqld/mysqld.pid
 | |
| socket		= /var/run/mysqld/mysqld.sock
 | |
| datadir		= /var/lib/mysql
 | |
| default-storage-engine=INNODB
 | |
| # Disabling symbolic-links is recommended to prevent assorted security risks
 | |
| skip-external-locking
 | |
| key_buffer_size=16M
 | |
| max_allowed_packet=4M
 | |
| table_open_cache=64
 | |
| sort_buffer_size=512K
 | |
| net_buffer_length=8K
 | |
| read_buffer_size=256K
 | |
| read_rnd_buffer_size=512K
 | |
| skip-name-resolve
 | |
| max_connections=1000
 | |
| slow_query_log = ON
 | |
| slow_query_log_file = /tmp/mysql_slow.log
 | |
| long_query_time = 1
 | |
| sql_mode="STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
 | |
| #log-error	= /var/log/mysql/error.log
 | |
| # By default we only accept connections from localhost
 | |
| #bind-address	= 127.0.0.1
 | |
| # Disabling symbolic-links is recommended to prevent assorted security risks
 | |
| log_timestamps = SYSTEM
 |