SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Minneapolis
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question /tmp/mysql.sock Problem: Not There (Mac OS X)

    /tmp/mysql.sock Problem: Not There (Mac OS X)
    Hello All,

    I'm a total newb with Mac OS X, and a total new w/installing MySQL. That being said, when I installed MySQL initially today, it seemed to work just fine. Having shut off my computer to do some other stuff, I am now getting the following error:

    error: 'Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)'

    So, it would seem that this file must exist in order for MySQL to work, but it's not there. I read that this might be due to a cron job that automatically cleans out the tmp folder, which makes sense. The only items I see in the tmp directory are 501 and mcx_compositor (file).

    Any suggestions?...especially basic ones?

    Oh, yes, I should also mention that my Mac help application stopped working. Spiffy...perhaps unrelated but i thought I'd just mention that.

    Thanks!!!!!

  2. #2
    + platinum's Avatar
    Join Date
    Jun 2001
    Location
    Adelaide, Australia
    Posts
    6,441
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The file in /tmp/ is just a link, you can just make a new link by going

    ln -s /path/to/mysql.sock mysql.sock

    Depending where mysql is installed depends on where /path/to will point

  3. #3
    SitePoint Member
    Join Date
    Mar 2004
    Location
    Minneapolis
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    platinum, thanks for your generous help!!

    I had created a symbolic link to /private/tmp yesterday but had not been able to see if that worked just then...apparently it did, because mysql starts right up now.

    Incidentally, here is where I found this fix:

    http://www.iwalt.com/weblog/2003/01/mysqlsnafu


    Quote Originally Posted by platinum
    The file in /tmp/ is just a link, you can just make a new link by going

    ln -s /path/to/mysql.sock mysql.sock

    Depending where mysql is installed depends on where /path/to will point


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
  •