Hallo,
hat jemand einen Tipp wie bei mysql 5.7 die my.cnf optimiert werden kann?
Denn gefühlt glaube ich das eine Wordpress-Installation vorher mit mysql 5.5 in Reihe 4 irgendwie performanter und schneller war.
Meine my.cnf bei MySQL 5.7 in SE-Reihe 6
[mysqld]
skip-networking
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
innodb_buffer_pool_size = 32G
innodb_log_file_size = 256M
innodb_flush_log_at_trx_commit = 0
innodb_flush_method = O_DIRECT
Ich habe auch mit folgender Kommandozeile die myISAM in Innodb gewandelt, aber auch das hat nichts spärbar gebracht:
mysql -uroot -p usrdb_xxxxx_xxx -e "show table status where Engine='MyISAM';" | awk 'NR>1 {print "ALTER TABLE "$1" ENGINE = InnoDB;"}' | mysql -uroot -p usrdb_xxxxx_xxx
- - - - - - -
In Reihe4 sah meine my.cnf so aus, aber die geht nach dem Upgrade nicht mehr.
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = /usr/local/pd-admin2/var/mysql.run/mysql.sock
# Here follows entries for some specific programs
# The MySQL server
[mysqld]
open_files_limit=16K
query_cache_size=256M
tmp_table_size=5096M
max_heap_table_size=1024M
table_open_cache = 256K
table_definition_cache = 256K
port = 3306
socket = /usr/local/pd-admin2/var/mysql.run/mysql.sock
skip-external-locking
key_buffer_size = 32M
max_allowed_packet = 32M
sort_buffer_size = 2M
net_buffer_length = 16K
read_buffer_size = 512K
read_rnd_buffer_size = 2M
myisam_sort_buffer_size = 32M
innodb_file_per_table
skip-networking
server-id = 1
innodb_buffer_pool_size = 8192M
innodb_additional_mem_pool_size = 256M
innodb_flush_log_at_trx_commit = 2
[mysqldump]
quick
max_allowed_packet = 128M
[mysql]
no-auto-rehash
[myisamchk]
key_buffer_size = 40M
sort_buffer_size = 40M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
Vielleicht hat ja jemand schon an der Performance geschraubt und hat Ideen. Mit meiner my.cnf auf Reihe 4 war ich echt zufrieden, die war gut schnell.
viele Grüße
Manfred