Find the answer to your Linux question:
Results 1 to 4 of 4
I installed MySQL on FedoraC5 and was following some simple instructions regarding PHP - MySQL setup. What bothers me is this - I ran: /# find . -name mysqld -print ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2007
    Posts
    4

    File Question


    I installed MySQL on FedoraC5 and was following some simple instructions regarding PHP - MySQL setup.

    What bothers me is this -

    I ran:

    /# find . -name mysqld -print

    to get the result

    ./usr/libexec/mysqld
    ./var/run/mysqld
    ./var/lock/subsys/mysqld
    ./etc/rc.d/init.d/mysqld


    Now for the love of god, can someone tell me what is the role of each mysqld file on each of those locations????? And why are there 4 locations in use for mysqld?

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    I wouldn't let it bother you too much.

    • /usr/libexec/mysqld - Not sure, maybe the binary itself (although I would think that would be some place like /usr/bin or /usr/local/bin).
    • /var/run/mysqld - Read man 7 hier for a description of /var/run.
    • /var/lock/subsys/mysqld - Read man 7 hier for a description of /var/lock.
    • /etc/rc.d/init.d/mysqld - Init script for mysqld.

  3. #3
    Just Joined!
    Join Date
    Jun 2007
    Posts
    4
    Quote Originally Posted by anomie View Post
    I wouldn't let it bother you too much.

    • /usr/libexec/mysqld - Not sure, maybe the binary itself (although I would think that would be some place like /usr/bin or /usr/local/bin).
    • /var/run/mysqld - Read man 7 hier for a description of /var/run.
    • /var/lock/subsys/mysqld - Read man 7 hier for a description of /var/lock.
    • /etc/rc.d/init.d/mysqld - Init script for mysqld.
    I looked up man 7 heir - no lock or run subfolder description, just for var - multi-purpose log, temporary, transient, and spool files

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Weird.

    Well, here are the entries from my CentOS box then:
    /var/lock
    Lock files are placed in this directory. The naming convention
    for device lock files is LCK..<device> where <device> is the
    device's name in the filesystem. The format used is that of
    HDU UUCP lock files, i.e. lock files contain a PID as a 10-byte
    ASCII decimal number, followed by a newline character.
    /var/run
    Run-time variable files, like files holding process identifiers
    (PIDs) and logged user information (utmp). Files in this
    directory are usually cleared when the system boots.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •