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

  • SEARCH
  • Home
  • 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 8370457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:55:02+00:00 2026-06-09T13:55:02+00:00

I’m pretty sure that this has to do with my setup but let me

  • 0

I’m pretty sure that this has to do with my setup but let me lay it out first. I have installed XAMPP on my machine for my LAMP projects. I’d also like to do a little Rails development for fun (RubyMine looks pretty sweet). I’ve installed Homebrew and the required gems to get my app running but when I try to connect to mysql via RubyMine I get the following error

Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)

Using my bash console I can get to the mysql console well enough, it seems to be working well and my Apache projects are still connecting. I’m under the impressions that the gem i’ve installed or exactly where my Ruby installation is looking is a different MySQL installation? Is this possible? I’ve been beating my head against my keyboard for the last day and a half and I’m not quite sure where to go. Ideally if there is a way I can point my Rails application to the installation of MySQL in my XAMPP folder that would be super cool but I’m a newb and maybe these things aren’t “correct”. Any help is greatly apprecited, if you guys want more info lemme know! Thanks!

Full Error:

/Users/Username/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/Username/.rvm/gems/ruby-1.9.3-p194@global/bin/rake db:setup
Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)
Couldn’t create database for {“adapter”=>”mysql2”, “encoding”=>”utf8”, “reconnect”=>false, “database”=>”project_development”, “pool”=>5, “username”=>”root”, “password”=>”mypass”, “host”=>”localhost”}, charset: , collation:
Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)
Couldn’t create database for {“adapter”=>”mysql2”, “encoding”=>”utf8”, “reconnect”=>false, “database”=>”project_development”, “pool”=>5, “username”=>”root”, “password”=>nil, “host”=>”localhost”}, charset: , collation:
rake aborted!
Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)

Tasks: TOP => db:schema:load => environment
(See full trace by running task with –trace)

Process finished with exit code 1

  • 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-09T13:55:03+00:00Added an answer on June 9, 2026 at 1:55 pm

    If you run mysql in shell and then run

    mysql> STATUS;
    

    you will see a line like

    UNIX socket:        /tmp/mysql.sock
    

    This is the socket location for MySQL. You can specify this in your config/database.yml for the connection you’re using with

    socket: /tmp/mysql.sock
    

    This tells Rails the socket location to connect to MySQL through.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a French site that I want to parse, but am running into
I know there's a lot of other questions out there that deal with this
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.