Skip to content

Commit

Permalink
Merge pull request #2 from GaryCornell/2.03-1
Browse files Browse the repository at this point in the history
Release 2.03
  • Loading branch information
GaalexxC authored Jun 30, 2017
2 parents 85a3e6d + 053959d commit 621fcd5
Show file tree
Hide file tree
Showing 4 changed files with 2,135 additions and 88 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg) ![Version](https://img.shields.io/badge/Version-2.03-blue.svg) ![Version](https://img.shields.io/badge/Development-Active-blue.svg)
![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg) ![Version](https://img.shields.io/badge/Version-2.03-blue.svg) ![Development](https://img.shields.io/badge/Development-Active-blue.svg)

# nginxubuntu-php7

Expand Down
175 changes: 175 additions & 0 deletions src/mysql/my.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
#
# The Percona Server 5.7 configuration file.
#
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
# Please make any edits and changes to the appropriate sectional files
# included below.
#

#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
#
# The MySQL database server configuration file.
#
# You can copy this to one of:
# - "/etc/mysql/my.cnf" to set global options,
# - "~/.my.cnf" to set user-specific options.
#
# One can use all long options that the program supports.
# Run program with --help to get a list of available options and with
# --print-defaults to see which it would actually understand and use.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html

# This will be passed to all mysql clients
# It has been reported that passwords should be enclosed with ticks/quotes
# escpecially if they contain "#" chars...
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock

# Here is entries for some specific programs
# The following values assume you have at least 32M ram

# This was formally known as [safe_mysqld]. Both versions are currently parsed.
[mysqld_safe]
socket = /var/run/mysqld/mysqld.sock
nice = 0

[mysqld]
#
# * Basic Settings
#
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /opt/mysql
lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# * Fine Tuning
#
key_buffer_size = 16M
thread_stack = 192K
thread_cache_size = 32
back_log = 100
max_connect_errors = 10000
open_files_limit = 1024
interactive_timeout = 400
wait_timeout = 300
max_allowed_packet = 128M
tmp_table_size = 256M
max_heap_table_size = 256M
sort_buffer_size = 4M
read_buffer_size = 4M
read_rnd_buffer_size = 16M
join_buffer_size = 2M
myisam_sort_buffer_size = 64M
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover-options = BACKUP,FORCE
max_connections = 200
table_open_cache = 400
sql_mode = ""
#
# * Query Cache Configuration
#
query_cache_limit = 6M
query_cache_size = 32M
#
# * Logging and Replication
#
# Both location gets rotated by the cronjob.
# Be aware that this log type is a performance killer.
# As of 5.1 you can enable the log at runtime!
#general_log_file = /var/log/mysql/mysql.log
#general_log = 1
#
# Error log - should be very few entries.
#
log_error = /var/log/mysql/error.log
#
# Here you can see queries with especially long duration
long_query_time = 2
log-queries-not-using-indexes
log-bin = /var/log/mysql/mysql-bin.log
general_log_file = /var/log/mysql/mysql.log
general_log = 1
slow_query_log = 1
slow_query_log_file = /var/log/mysql/mysql-slow.log
long_query_time = 5
log-queries-not-using-indexes
#
# The following can be used as easy to replay backup logs or for replication.
# note: if you are setting up a replication slave, see README.Debian about
# other settings you may need to change.
server-id = 1
expire_logs_days = 10
max_binlog_size = 100M
#binlog_do_db = include_database_name
#binlog_ignore_db = include_database_name
#
# * InnoDB
#
# InnoDB is enabled by default with a 10MB datafile in /var/lib/mysql/.
# Read the manual for more InnoDB related options. There are many!
#
# * Security Features
#
# Read the manual, too, if you want chroot!
# chroot = /var/lib/mysql/
#
# For generating SSL certificates I recommend the OpenSSL GUI "tinyca".
#
#ssl-ca=/etc/mysql/serveres.exceptionalservers.ca.pem
#ssl-cert=/etc/mysql/serveres.exceptionalservers.crt.pem
#ssl-key=/etc/mysql/serveres.exceptionalservers.key.pem
#ssl-cipher=ALL
#skip-bdb
#skip-innodb


[mysqldump]
quick
quote-names
max_allowed_packet = 16M

[mysql]
no-auto-rehash # faster start of mysql but no tab completition

[isamchk]
key_buffer_size = 16M

[mysqlhotcopy]
interactive-timeout

!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/percona-server.conf.d/

Loading

0 comments on commit 621fcd5

Please sign in to comment.