MySQL install

Discussion in 'Mac Programming' started by SRossi, Nov 2, 2009.

  1. macrumors regular

    Joined:
    May 27, 2009
    Location:
    Glasgow, Scotland
    #1
    Hey all,

    I downloaded and opened and installed MySQL, but now I cannot find how to run it. Looking at the apple developer page it says to do a command in the terminal and then it should configure. But when I write this command into terminal it gives me an error saying it cannot be found.

    I downloaded the .pkg app for 10.5 because people were saying it works with 10.6 which I have.

    Thanks in advance for your help,

    Stephen
     
  2. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    What command did you try? You'll likely need to edit your environment PATH to include the binaries for MySQL. Do you know where MySQL was installed?
     
  3. thread starter macrumors regular

    Joined:
    May 27, 2009
    Location:
    Glasgow, Scotland
    #3
    Think I may have found it out using a package was way further ahead of the documents than I was meant to be, I was still trying to compile it, but it has already installed. I'll try running it, if that don't work I'll say what happened.

    Thanks though,

    Stephen

    EDIT: Right it has installed successfully but now the command that apple says to use:

    Code:
    sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &
    does not work, I had a look in the folder and mysqld_safe is not there, any other way of running it?

    Thanks,

    Stephen
     
  4. macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #4
    Don't bother with the Apple docs just read the MySQL documentation on their website. If you are running Snow Leopard make sure you download the 64 bit version of MySQL (download 5.1.40 in package format). Then it is a piece of cake to use as (if I remember correctly) it already sets the PATH for you basically just gets you going.
     
  5. Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #5
    You can try doing a search for that executable,

    Code:
    sudo locate mysqld_safe
    or more extensive search
    Code:
    sudo find /usr -name "mysqld_safe"
     

Share This Page