 {"id":17,"date":"2007-03-05T12:25:02","date_gmt":"2007-03-05T17:25:02","guid":{"rendered":"http:\/\/www.networkjack.info\/blog\/archives\/17"},"modified":"2007-06-14T12:17:24","modified_gmt":"2007-06-14T17:17:24","slug":"mysql-server-logs-and-data-standardizing-links","status":"publish","type":"post","link":"http:\/\/www.networkjack.info\/blog\/2007\/03\/05\/mysql-server-logs-and-data-standardizing-links\/","title":{"rendered":"MySQL server &#8211; logs and data &#8211; standardizing links"},"content":{"rendered":"<p>We manage a lot of different servers, mostly web application servers running PHP and MySQL.<\/p>\n<p>The physical layout of these systems, due the hardware involved, often is quite different from server to server. As a result the placement of the data repository and binary logs and other log files is not the the same.<\/p>\n<p>I got tired of having to track down where each of these items were located, so I started using the following structure where possible. If not possible, these same items existed, but were merely symlinks to the actual locations.<\/p>\n<blockquote><p>\/var\/mysql<\/p><\/blockquote>\n<ul>\n<li>mysql.sock &#8211; just a symlink to \/tmp\/mysql.sock. This was due to a minor config issue Apple had in OS X Server 10.4, that they finally corrected.<\/li>\n<li>binlogs &#8211; the binary logs generated if this system is intended to be a replication master<\/li>\n<li>data &#8211; link to the actual location of the datadir<\/li>\n<\/ul>\n<blockquote><p>\/var\/log\/mysql<\/p><\/blockquote>\n<ul>\n<li>error.log &#8211; the error log for the machine. I never liked how mysql named the error log after the hostname. Now, I&#8217;m telling it, use this name<\/li>\n<li>slowq.log &#8211; slow query log<\/li>\n<\/ul>\n<p>Now all the items that I normally need to get to, have easy to remember, standardized &#8220;locations&#8221;.<\/p>\n<p>I&#8217;m sure this is old hat for some. Sometimes it takes me a while to figure out the simple stuff. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We manage a lot of different servers, mostly web application servers running PHP and MySQL. The physical layout of these systems, due the hardware involved,&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.networkjack.info\/blog\/2007\/03\/05\/mysql-server-logs-and-data-standardizing-links\/\">Continue reading<span class=\"screen-reader-text\">MySQL server &#8211; logs and data &#8211; standardizing links<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,8],"tags":[],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-database","category-servers","entry"],"_links":{"self":[{"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/posts\/17"}],"collection":[{"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":0,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.networkjack.info\/blog\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}