SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2000
    Location
    Los Angeles, CA
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i am desperately looking for a script that would tell me the full path to mysql on my server.
    thanks

  2. #2
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you want the full path to the client or the server?

    For the server, type this at the shell:
    locate safe_mysqld|grep -v man
    That's the location to the script which starts the server.

    For the mysql client, type this:
    which mysql

  3. #3
    SitePoint Evangelist
    Join Date
    May 2000
    Location
    Canada
    Posts
    533
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if you want the mysql path to connect to

    generally
    /usr/local/mysql/bin/mysql

    or
    /usr/bin/mysql

    otherwise, do what quinn said, and it should be in the same directory as safe_mysqld
    cogito, ergo sum

  4. #4
    SitePoint Zealot
    Join Date
    Dec 2000
    Location
    Los Angeles, CA
    Posts
    127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks guys!
    the problem has been solved.


Bookmarks

Posting Permissions

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