It is extremely important for you to fully understand each change you make to a MySQL database server. If you don't understand portions of the script's output, or if you don't understand the recommendations, you should consult a knowledgeable DBA or even a system administrator that you trust. Always test your changes on staging environments, and always keep in mind that improvements in one area can negatively affect MySQL in other areas.
Download MySQLTuner using the following command
# wget http://mysqltuner.com/mysqltuner.plTo run the script, simply make it executable and run it:
# chmod +x mysqltuner.plEnter your administrative username and password
Output you can see as follows