Servus
Basic Pleskian
Hello!
I have big problem. If this is wrong place in forum, please tell me, I will delete thread and copy content to somewhere else, think it is also related general to plesk onyx.
To this year a friend with database experience was optimising my mysql database for many years. Now he is ill and can not do anything at all.
My problem with plesk database 5.7.19 on ubuntu 16 is the my.cnf is total different from mysql 5.6 and 5.5. I was able by myself to replace/upgrade plesk database mysql 5.5 to mysql 5.6 on ubuntu 14 early this year. (for this the old optimised values of my.cnf didn't change and were applied to new version).
Now with 5.7 and plesk onyx 17.5.3 #21 there are no options like normal. The whole content is like in a sandbox modus. I searched for days in many support articles in plesk, ubuntu, mysql. I think it's like running in a different modus (safe mode) by defauld or innodb modul is not activated.
It must be a only a small little setting/option to open my.cnf for normal editing.
Logs are ok (see last box).
I already made two changes weeks ago in [mysqld] it seems ok, but as you see there are missing too much settings in actual 5.7 msql.cnf.
Please, help would be so nice. Sorry for this simple question.
Error.log + Tweaked (optimised) my.cnf from 5.4.2017 (before or after upgrading mysql from 5.5 to 5.6) in attachment
Actual .mycnf 5.7.19 with plesk 17.5.3 Ubuntu 16.04 (Today)
Tweaked and optimised for forum and blog software .mycnf 5.5 with plesk 17.0 Ubuntu 14.04 (16.12.2016)
Kindest regards
I have big problem. If this is wrong place in forum, please tell me, I will delete thread and copy content to somewhere else, think it is also related general to plesk onyx.
To this year a friend with database experience was optimising my mysql database for many years. Now he is ill and can not do anything at all.
My problem with plesk database 5.7.19 on ubuntu 16 is the my.cnf is total different from mysql 5.6 and 5.5. I was able by myself to replace/upgrade plesk database mysql 5.5 to mysql 5.6 on ubuntu 14 early this year. (for this the old optimised values of my.cnf didn't change and were applied to new version).
Now with 5.7 and plesk onyx 17.5.3 #21 there are no options like normal. The whole content is like in a sandbox modus. I searched for days in many support articles in plesk, ubuntu, mysql. I think it's like running in a different modus (safe mode) by defauld or innodb modul is not activated.
It must be a only a small little setting/option to open my.cnf for normal editing.
Logs are ok (see last box).
I already made two changes weeks ago in [mysqld] it seems ok, but as you see there are missing too much settings in actual 5.7 msql.cnf.
Please, help would be so nice. Sorry for this simple question.
Error.log + Tweaked (optimised) my.cnf from 5.4.2017 (before or after upgrading mysql from 5.5 to 5.6) in attachment
Actual .mycnf 5.7.19 with plesk 17.5.3 Ubuntu 16.04 (Today)
Code:
#
# 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.
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
[mysqld]
bind-address=127.0.0.1
sql_mode=ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
#bind-address = ::ffff:127.0.0.1
local-infile=0
innodb_flush_log_at_trx_commit=2
innodb_buffer_pool_size=1G
Tweaked and optimised for forum and blog software .mycnf 5.5 with plesk 17.0 Ubuntu 14.04 (16.12.2016)
Code:
#
# 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]
bind-address=127.0.0.1
#bind-address = ::
skip_name_resolve
local-infile=0
#
# * 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 = /tmp
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.
#
# * Fine Tuning
#
key_buffer = 16M
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8
# This replaces the startup script and checks MyISAM tables if needed
# the first time they are touched
myisam-recover = BACKUP
#max_connections = 100
#table_cache = 64
#thread_concurrency = 10
#
# * Query Cache Configuration
#
query_cache_limit = 1M
query_cache_size = 16M
#
# * 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
#log_slow_queries = /var/log/mysql/mysql-slow.log
#long_query_time = 2
#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
#log_bin = /var/log/mysql/mysql-bin.log
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!
default_storage_engine = InnoDB
# you can't just change log file size, requires special procedure
#innodb_log_file_size = 50M
#innodb_buffer_pool_size = 3072M
innodb_log_buffer_size = 8M
innodb_file_per_table = 1
innodb_open_files = 400
innodb_io_capacity = 400
innodb_flush_method = O_DIRECT
innodb_flush_log_at_trx_commit = 2
innodb_autoextend_increment = 512M
# * 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/cacert.pem
# ssl-cert=/etc/mysql/server-cert.pem
# ssl-key=/etc/mysql/server-key.pem
[mysqldump]
quick
quote-names
max_allowed_packet = 16M
[mysql]
#no-auto-rehash # faster start of mysql but no tab completition
[isamchk]
key_buffer = 16M
#
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
Kindest regards