====== MySQL tunen nach Installation ======
===== 10 MySQL Tuning Tipps nach Installation =====
nützliche Hilfe findet man im [[http://www.percona.com/blog/2014/01/28/10-mysql-settings-to-tune-after-installation/|PERCONA MySQL Performance Blog]] oder auf\\
[[http://lab4.org/wiki/Zabbix_MySQL_tunen|ZABBIX MySQL tunen]]
==== Open Files Limit erhöhen ====
Will man das caching in my.cnf erhöhen, ist neben der Konfiguration in my.cnf folgendes notwendig:
1. sudo nano /lib/systemd/system/mysql.service
2. fügende folgende Zeilen am Ende des files dazu:
LimitNOFILE=infinity
LimitMEMLOCK=infinity
3. sudo systemctl daemon-reload
4. sudo systemctl restart mysql
Hier der [[https://stackoverflow.com/questions/35111698/unable-to-increase-mysql-open-files-limit|Link dazu]]
Überprüfen kann man das in der MySQL Konsole
mysql> SHOW VARIABLES LIKE 'open%';
====== ======
====== MySQL kann durch Scripts getuned werden ======
Beispiele dafür sind
[[https://launchpad.net/mysql-tuning-primer|MySQL Tuning Primer Script]]\\
[[http://mysqltuner.com/|MySQL Tuner]]
curl -L http://mysqltuner.pl/ | perl
===== MySQL Monitoring =====
kann man mit dem Programm [[https://www.tecmint.com/mytop-mysql-mariadb-database-performance-monitoring-in-linux/|mytop]] bequem und einfach durchführen