{"id":58,"date":"2014-02-12T19:27:00","date_gmt":"2014-02-12T19:27:00","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=33"},"modified":"2014-02-12T19:27:00","modified_gmt":"2014-02-12T19:27:00","slug":"mysql-optimization-on-centos-6","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/02\/12\/mysql-optimization-on-centos-6\/","title":{"rendered":"Optimize Mysql"},"content":{"rendered":"<p>Did you know that mysql comes with configuration files for better optimization? These files are located at:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\/usr\/share\/doc\/mysql-server-5.1.71\/my-huge.cnf\n\/usr\/share\/doc\/mysql-server-5.1.71\/my-innodb-heavy-4G.cnf\n\/usr\/share\/doc\/mysql-server-5.1.71\/my-large.cnf\n\/usr\/share\/doc\/mysql-server-5.1.71\/my-medium.cnf\n\/usr\/share\/doc\/mysql-server-5.1.71\/my-small.cnf\n\/usr\/share\/man\/man5\/openssl.cnf.5ssl.gz\n<\/pre>\n<p>Or<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\/usr\/share\/mysql\/my-huge.cnf\n\/usr\/share\/mysql\/my-innodb-heavy-4G.cnf\n\/usr\/share\/mysql\/my-large.cnf\n\/usr\/share\/mysql\/my-medium.cnf\n\/usr\/share\/mysql\/my-small.cnf\n<\/pre>\n<p>Stop mysql<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># service mysqld stop\nStopping mysqld:  &#x5B;  OK  ]\n<\/pre>\n<p>backup the original my.cnf file.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># mv \/etc\/my.cnf \/etc\/my.cnf.original\n<\/pre>\n<p>Move the new config file to \/etc based on your needs:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># cp \/usr\/share\/mysql\/my-medium.cnf \/etc\/my.cnf\n<\/pre>\n<p>Restart MySQL:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># service mysqld start\n<\/pre>\n<p>Other Resources:<br \/>\n<a href=\"https:\/\/qbytes.cloud\/using-mysqltuner\/\">https:\/\/qbytes.cloud\/using-mysqltuner\/<\/a><br \/>\n<a href=\"http:\/\/www.hardwaresecrets.com\/article\/How-to-Optimize-a-MySQL-Server\/1747\" target=\"_blank\" rel=\"noopener\">http:\/\/www.hardwaresecrets.com\/article\/How-to-Optimize-a-MySQL-Server\/1747<\/a><br \/>\n<a href=\"http:\/\/www.thegeekstuff.com\/2011\/03\/sar-examples\/\" target=\"_blank\" rel=\"noopener\">http:\/\/www.thegeekstuff.com\/2011\/03\/sar-examples\/<\/a><br \/>\n<a href=\"http:\/\/www.cyberciti.biz\/tips\/top-linux-monitoring-tools.html\" target=\"_blank\" rel=\"noopener\">http:\/\/www.cyberciti.biz\/tips\/top-linux-monitoring-tools.html<\/a><br \/>\n<a href=\"http:\/\/www.codero.com\/knowledge-base\/questions\/319\/How+to+install+mytop+for+database+performance+monitoring%3A\" target=\"_blank\" rel=\"noopener\">http:\/\/www.codero.com\/knowledge-base\/questions\/319\/How+to+install+mytop+for+database+performance+monitoring%3A<\/a><br \/>\n<a href=\"http:\/\/httpd.apache.org\/docs\/current\/misc\/perf-tuning.html\">http:\/\/httpd.apache.org\/docs\/current\/misc\/perf-tuning.html<\/a><br \/>\n<a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/optimization.html\" target=\"_blank\" rel=\"noopener\">http:\/\/dev.mysql.com\/doc\/refman\/5.0\/en\/optimization.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Did you know that mysql comes with configuration files for better optimization? These files are located at: \/usr\/share\/doc\/mysql-server-5.1.71\/my-huge.cnf \/usr\/share\/doc\/mysql-server-5.1.71\/my-innodb-heavy-4G.cnf \/usr\/share\/doc\/mysql-server-5.1.71\/my-large.cnf \/usr\/share\/doc\/mysql-server-5.1.71\/my-medium.cnf \/usr\/share\/doc\/mysql-server-5.1.71\/my-small.cnf \/usr\/share\/man\/man5\/openssl.cnf.5ssl.gz Or \/usr\/share\/mysql\/my-huge.cnf \/usr\/share\/mysql\/my-innodb-heavy-4G.cnf \/usr\/share\/mysql\/my-large.cnf \/usr\/share\/mysql\/my-medium.cnf \/usr\/share\/mysql\/my-small.cnf Stop mysql # service mysqld stop Stopping mysqld: &#x5B; OK ] backup the original my.cnf file. # mv \/etc\/my.cnf \/etc\/my.cnf.original Move the new config file to &#8230; <a title=\"Optimize Mysql\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/02\/12\/mysql-optimization-on-centos-6\/\" aria-label=\"Read more about Optimize Mysql\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[70],"tags":[],"class_list":["post-58","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/58","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=58"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/58\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=58"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=58"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=58"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}