Magento MySQL my.cnf perfect setup
Here is the perfect my.cnf configuration which worked for me.
You can use this for the running magento properly.
Here is the perfect my.cnf configuration which worked for me.
You can use this for the running magento properly.
[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockuser=mysql#innodb settingsinnodb_log_file_size=100Minnodb_additional_mem_pool_size=20Minnodb_flush_log_at_trx_commit=2innodb_lock_wait_timeout=1800innodb_buffer_pool_size=20G #other varsnet_read_timeout=120skip-lockingskip-name-resolvetable_cache=2048thread_cache_size=16back_log=100max_connect_errors=10000open-files-limit=20000interactive_timeout=3600wait_timeout=1800max_connections=200key_buffer_size=1Gconnect_timeout=120#skip-name-resolvemax_allowed_packet=16Mtmp_table_size=64Mmax_heap_table_size=64Mquery_cache_size=256Msort_buffer_size=1Mread_buffer_size=1Mread_rnd_buffer_size=8Mjoin_buffer_size=3Mold_passwords=1