4 Replies - 949 Views - Last Post: 28 July 2010 - 05:46 PM Rate Topic: -----

#1 tastysoup  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 08-August 09

mysql access problem

Posted 27 July 2010 - 03:10 PM

Hi all,

I have another beginner question. I am trying to do my first migration using mysql but I get the following error when I run rake db:migrate


rake aborted!
Access denied for user 'root'@'localhost' (using password: NO)

(See full trace by running task with --trace)
Is This A Good Question/Topic? 0
  • +

Replies To: mysql access problem

#2 girasquid  Icon User is offline

  • Barbarbar
  • member icon

Reputation: 108
  • View blog
  • Posts: 1,825
  • Joined: 03-October 06

Re: mysql access problem

Posted 27 July 2010 - 03:26 PM

It looks like the settings in your config/database.yml are incorrect. Double-check to make sure that you've set up the proper databases, usernames, and passwords.
Was This Post Helpful? 0
  • +
  • -

#3 dorknexus  Icon User is offline

  • or something bad...real bad.
  • member icon

Reputation: 1255
  • View blog
  • Posts: 4,618
  • Joined: 02-May 04

Re: mysql access problem

Posted 27 July 2010 - 03:27 PM

Have you configured config/database.yml properly with the correct username and password?
Was This Post Helpful? 0
  • +
  • -

#4 tastysoup  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 08-August 09

Re: mysql access problem

Posted 27 July 2010 - 03:37 PM

PASSWORD!!!

Oh, man, I feel dumb. I totally forgot to put the password in the database.yml file.

Thanks all!
Was This Post Helpful? 0
  • +
  • -

#5 dorknexus  Icon User is offline

  • or something bad...real bad.
  • member icon

Reputation: 1255
  • View blog
  • Posts: 4,618
  • Joined: 02-May 04

Re: mysql access problem

Posted 28 July 2010 - 05:46 PM

glad we could help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1