title: Can't connect to MySQL server on '127.0.0.1'
body: <p>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:</p>
  
  <pre><code>development:
    adapter: mysql
    host: 127.0.0.1
    database: db/app_development
    username: root
    password: 
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>Can't connect to MySQL server on '127.0.0.1' (61)
  Couldn't create database for {"username"=&gt;"root", "adapter"=&gt;"mysql", "database"=&gt;"db/app_development", "host"=&gt;"127.0.0.1", "password"=&gt;nil}, charset: utf8, collation: utf8_unicode_ci
  </code></pre>
  
  <p>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? </p>
  
  <p>This is the output when I run mysqld_safe:</p>
  
  <pre><code>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
  </code></pre>