SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Command $rake db:migrate is failing looking for mysql.sock

    I'm now at Chapter 5 of Lenz's book trying to use the rake command and I get an error

    dave-halletts-computer-2:~/shovell davehallett$ rake db:migrate
    (in /Users/davehallett/shovell)
    rake aborted!
    No such file or directory - /tmp/mysql.sock


    When I used the locate mysql.sock command I get the answer back

    /private/tmp/mysql.sock

    yet when I change to that directory I can't find a mysql.sock file.
    Any hints?
    Thanks

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,578
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Is MySQL running?

  3. #3
    SitePoint Evangelist
    Join Date
    Apr 2006
    Location
    Halifax, Canada
    Posts
    498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you set up the database.yml file for your databases?
    Paul Butler.org
    JSSpamBlock - Reduce WordPress spam.

  4. #4
    SitePoint Member
    Join Date
    Jun 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It might be that your mysql.sock lives in a different location. For example, on one of my servers it lives in /var/lib/mysql/

    Maybe try "updatedb" and then "locate mysql.sock" then update your application's database.yml.


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
  •