Skip to main content.
March 5th, 2007

MySQL server - logs and data - standardizing links

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, 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.

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.

/var/mysql

/var/log/mysql

Now all the items that I normally need to get to, have easy to remember, standardized “locations”.

I’m sure this is old hat for some. Sometimes it takes me a while to figure out the simple stuff. :-)

Posted by Brian Blood in Database, Servers

This entry was posted on Monday, March 5th, 2007 at 12:25 pm and is filed under Database, Servers. You can follow any responses to this entry through the comments RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “MySQL server - logs and data - standardizing links”

  1. sanderw says:

    How are you enforcing this standard? Just by practice or are you looking at configuration managers like cfengine or rsh scripts?

  2. Brian Blood says:

    Nothing really to enforce. I’m just creating a set of aliases to where ever the items are located on that particular server and storing those links in the same place on every machine.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.