Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8015685
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:19:18+00:00 2026-06-04T20:19:18+00:00

NOTE: The full discussion to the answer in this question is in a chat

  • 0

NOTE: The full discussion to the answer in this question is in a chat link in the comment section below, above the submitted answers.

The summarized answer is in checked answer.

After meddling with installing the gem for mysql2 and successfully doing that I type

which mysql

and it returns

mysql: aliased to nocorrect mysql

I’m not sure what this means.

Then I type in

 mysql --version

and it outputs

 mysql  Ver 14.14 Distrib 5.5.20, for osx10.7 (i386) using readline 5.1

So I know mysql is installed.

Finally I want to configure a database for my rails app so, from within the correct directory I type:

 mysql -u root -p 

It asks me for a password and, since there is none, I leave it blank. It outputs this:

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

I’ve been reading around for a solution but I don’t understand any of them. Like finding a file called my.cnf or a folder called etc within the rails framework files…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T20:19:19+00:00Added an answer on June 4, 2026 at 8:19 pm

    Here is what finally allowed me to create a freaking database in my rails apps through terminal after dealing this error.

    I downloaded mysql’s .dmg 64 bit version from here:

    http://dev.mysql.com/downloads/mysql/

    and then I followed the instructions in the README file. That was the most important part.

    Thanks for the help everyone.

    EDIT:

    This didn’t answer the question entirely for me since mysql stopped working.

    After installing .dmg version I had to update the bash_profile file.

    Here is where the instructions are:

    Should I reinstall Mysql?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Note: This question and answer is a full copy from Kelly Brownsbergers Blog .
Note: Full working example now below. Original question follows: I'm having problems using ld's
NOTE: This is an entire rewrite of the previous question. I have a model.
NOTE: This question is tricky (to decide whether it pertains to SO or not),
I was just reading this article :- http://css-tricks.com/perfect-full-page-background-image/ Please note this css :- #bg
Note: Let me appologize for the length of this question, i had to put
Note that I'm really looking for an answer to my question. I am not
Note : The code in this question is part of deSleeper if you want
Please note this link Render HTML as an Image is not helpful. In previously
Note: This similar SO question talks about how to build the same class, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.