تنظیمات زیر پیشنهاد می شود.
اما باید log های innodb رو چک کنید دقیقا سایزشون چقدر هست :
کد:[mysqld] user=mysql default-storage-engine=InnoDB key-buffer-size=32M myisam-recover=FORCE,BACKUP max-allowed-packet=16M max-connect-errors=1000000 datadir=/var/lib/mysql/ log-bin=/var/lib/mysql/mysql-bin expire-logs-days=14 sync-binlog=1 tmp-table-size=32M max-heap-table-size=32M query-cache-type=0 query-cache-size=0 max-connections=500 thread-cache-size=50 open-files-limit=65535 table-definition-cache=1024 table-open-cache=2048 innodb-flush-method=O_DIRECT innodb-log-files-in-group=2 innodb-log-file-size=512M innodb-flush-log-at-trx-commit=1 innodb-file-per-table=1 innodb-buffer-pool-size=20G log-queries-not-using-indexes=1 slow-query-log=1






پاسخ با نقل قول