Update 'mysql-8.0.sh'

This commit is contained in:
b.waal
2019-09-03 13:10:18 +02:00
parent 37d97f2a3f
commit ec118dc1c8

View File

@@ -23,33 +23,33 @@ dpkg -i /tmp/mysql-apt-conf.deb
apt-get update apt-get update
apt-get install -y mysql-server apt-get install -y mysql-server
rm /etc/mysql/mysql.conf.d/mysqld.cnf #rm /etc/mysql/mysql.conf.d/mysqld.cnf
cat > /etc/mysql/mysql.conf.d/mysqld.cnf <<- "EOF" #cat > /etc/mysql/mysql.conf.d/mysqld.cnf <<- "EOF"
[mysqld] #[mysqld]
user = mysql #user = mysql
pid-file = /var/run/mysqld/mysqld.pid #pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock #socket = /var/run/mysqld/mysqld.sock
port = 3306 #port = 3306
basedir = /usr #basedir = /usr
datadir = /var/lib/mysql #datadir = /var/lib/mysql
tmpdir = /tmp #tmpdir = /tmp
lc-messages-dir = /usr/share/mysql #lc-messages-dir = /usr/share/mysql
skip-external-locking #skip-external-locking
innodb_buffer_pool_size = 1G # (adjust value here, 50%-70% of total RAM) #innodb_buffer_pool_size = 1G # (adjust value here, 50%-70% of total RAM)
innodb_log_file_size = 256M #innodb_log_file_size = 256M
innodb_flush_log_at_trx_commit = 1 # may change to 2 or 0 #innodb_flush_log_at_trx_commit = 1 # may change to 2 or 0
innodb_flush_method = O_DIRECT #innodb_flush_method = O_DIRECT
bind-address = 127.0.0.1 #bind-address = 127.0.0.1
key_buffer_size = 16M #key_buffer_size = 16M
max_allowed_packet = 16M #max_allowed_packet = 16M
thread_stack = 192K #thread_stack = 192K
thread_cache_size = 8 #thread_cache_size = 8
myisam-recover-options = BACKUP #myisam-recover-options = BACKUP
#max_connections = 100 #max_connections = 100
#table_open_cache = 64 #table_open_cache = 64
#innodb-thread-concurrency = 10 #innodb-thread-concurrency = 10
log_error = /var/log/mysql/error.log #log_error = /var/log/mysql/error.log
expire_logs_days = 10 #expire_logs_days = 10
max_binlog_size = 100M #max_binlog_size = 100M
EOF #EOF