Emil CHERICHES

Emil CHERICHES

MySQL requires maintenance

May 4, 2014 Emil C
No Comments

Even if you’re running on a tiny VPS or on a huge server when you have a LAMP stack your biggest memory consumer will probably be MySQL. Some even prefer running it on a different machine when it comes to high traffic web apps.

But, as your apps are put to work MySQL tends to get slower, and one of the things always welcomed is to properly maintain MySQL/MariaDB. And I’ll show you the least you can do from time to time.

Download and run mysqltuner.pl

wget -O mysqltuner.pl mysqltuner.pl
chmod +x mysqltuner.pl 
./mysqltuner.pl

This script will run and tell you what to change in my.cnf.

Another thing you might do from time to time is checking, repairing and optimizing your tables:

mysqlcheck -c -A -p
mysqlcheck -r -A -p
mysqlcheck -o -A -p

So, nothing really fancy 🙂

Tips & Tricks MySQL
Previous Post

Linux still sucks (in 2014)

Next Post

Excelent speech about Linux

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts
  • DokuWiki a simple solution to sorting documentation
  • High Availability Load Balancer
  • Chasing Ads
  • Quick TIP: Postfix Reverse lookup
  • ClamAV Milter
Categories
  • from the web
  • just blog
  • linux
    • Mail Server Series
  • phones
  • Phones & Tablets
  • programing
  • security
  • Tips & Tricks
  • Uncategorized
  • Web development
  • Windows
Blogroll
  • cheriches.fr
Subscribe by Email
Recent Posts
  • DokuWiki a simple solution to sorting documentation
  • High Availability Load Balancer
  • Chasing Ads
  • Quick TIP: Postfix Reverse lookup
  • ClamAV Milter
Categories
  • from the web (3)
  • just blog (1)
  • linux (17)
    • Mail Server Series (1)
  • phones (1)
  • Phones & Tablets (2)
  • programing (1)
  • security (1)
  • Tips & Tricks (14)
  • Uncategorized (1)
  • Web development (1)
  • Windows (1)
Blogroll
  • cheriches.fr
Tags cloud
12.04 adb ADS Android Apache apt-get backports BlackBerry CentOS Chrome ClamAV Cluster CSS debian Dell dotdeb Eee PC Firefox FPM GNOME Hardware High Availability internet explorer javascript KVM linux MariaDB Milter MPM MySQL OpenVPN php piwik Postfix Proxy_ARP RedHat release RHEL Samba ubuntu VRRP wifi windows xp Youtube
Recent Comments
  • caviru on OpenVPN and Android
  • High Availability Load Balancer | Emil’s bits | LUG MureÅŸ on High Availability Load Balancer
  • Bill P. on ClamAV Milter
  • Apache+Nginx+PHP на Debian 7 | tol1k's blog on Hosting Websites with Apache and Nginx on Debian Wheezy
  • tdreyer1 on OpenVPN and Android
Proudly powered by WordPress | Theme: Fmi by Forrss.
Manage Cookie Consent
We use cookies to optimize our website and our service.
Functional cookies Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage vendors Read more about these purposes
View preferences
{title} {title} {title}