-
pt-query-advisor, pt-variable-advisor, and other tools available in Percona Toolkit - Debian, Ubuntu packages
Easy Security Tip for MySQL configuration: If you are only using mysql on a server for that one server and it’s not a dedicated server, you should turn off all TCP networking for mysql! Edit your my.cnf
ASAP and add the line skip-networking
(and restart mysql) Otherwise it’s listening for external connections instead of just local socket connections and it allows evil crackers to try to probe mysql. If you haven’t done this yet and see a high number of “Aborted Connects” you might be getting attacked over the network.
$ sudo apt-get install percona-toolkit
You'll see an error, and the package won't install because it requires some dependencies. Simply issue the following command to fix the dependency issues and install Perconal Toolkit:
$ sudo apt-get -f install
Source(s):
- http://stackoverflow.com/questions/3753504/mysqltuner-suggestions-and-changes-to-my-cnf
- http://www.bigdbahead.com/?p=115
- http://bobcares.com/blog/?p=115
- http://forums.mysql.com/read.php?22,274891,275259#msg-275259
- http://www.mysqlperformanceblog.com/2006/09/29/what-to-tune-in-mysql-server-after-installation/
- Sample config. files: my-huge.cnf, my-large.cnf, my-medium.cnf, my-small.cnf
- MySQLTuner: http://mysqltuner.com/
- MySQLReport: http://hackmysql.com/mysqlreport
- http://www.mysqlplus.net/2012/01/05/vote-mysqlplus-community-awards-2011/