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 7053387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:29:57+00:00 2026-05-28T03:29:57+00:00

I am trying to clone a repo and run it on my local machine.

  • 0

I am trying to clone a repo and run it on my local machine. I don’t have a DB created and I am trying to manually create my database.yml file (my first time doing this). I am not quite sure what i’m doing and keep getting errors about connecting to the MySql server. Here’s my database.yml file:

development:
  adapter: mysql
  host: 127.0.0.1
  database: db/app_development
  username: root
  password: 

I also tried localhost instead of 127.0.0.1, both give me errors when trying to create the db by doing ‘bundle exec rake db:create’ …i get this error:

Can't connect to MySQL server on '127.0.0.1' (61)
Couldn't create database for {"username"=>"root", "adapter"=>"mysql", "database"=>"db/app_development", "host"=>"127.0.0.1", "password"=>nil}, charset: utf8, collation: utf8_unicode_ci

I know i’m doing something wrong but I can’t quite figure out what it is. Do I need to start the mysql server or something?

This is the output when I run mysqld_safe:

120111 20:35:39 mysqld_safe Logging to '/usr/local/var/mysql/Matthew-Bermans-MacBook-Air.local.err'.
120111 20:35:39 mysqld_safe Starting mysqld daemon with databases from /usr/local/var/mysql
120111 20:35:41 mysqld_safe mysqld from pid file /usr/local/var/mysql/Matthew-Bermans-MacBook-Air.local.pid ended
  • 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-05-28T03:29:57+00:00Added an answer on May 28, 2026 at 3:29 am

    Try:

    development:
      adapter: mysql
      database: app_development
      username: root
      password: 
      socket: /var/lib/mysql/mysql.sock
    

    Then do your rake db:create to create it from rails.
    or
    in mysql do create database db_name
    and then the above code for :development will let you use it.

    Update: Matthew first needs to get mySQL installed on his (Mac) machine.
    I directed him to http://dev.mysql.com/downloads/mysql/

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

Sidebar

Related Questions

Trying to clone the pypy repo on my windows machine for some reason. I
I have installed Github for windows and when trying to clone the django repo
I have been trying to set up a staging machine to run project at
I am trying to clone my project on google code svn into a local
I am trying to clone a repo to my laptop from my main PC.
Currently I am trying to clone this git repo: https://github.com/twilio/OpenVBX into my main repo,
I have a repository I am trying to clone with EGit. It fails with
Someone I know is trying to clone my github repo and make changes directly
I managed to clone GIT hub repo in Jenkins and now trying to build
I'm trying to deploy a Rails application from my local machine to the VPS

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.