rake db:migrate not working

C

Chris Gunnels

I keep getting access denied for user 'root'@'localhost' (using
password: YES)

this is all I have in my database.yml file:
development:
adapter: mysql
database: devel
user: root
password: xxxxxx
host: localhost
 
P

Phlip

Chris said:
I keep getting access denied for user 'root'@'localhost' (using
password: YES)

this is all I have in my database.yml file:
development:
adapter: mysql
database: devel
user: root
password: xxxxxx
host: localhost

This is a Rails question (Ruby is a language) - further discussion belongs on
Ruby on Rails Talk forum at Google Groups.

Run this at a command prompt:

mysql -uroot

If you get in (very likely for out-of-the-box MySQL), then take out the password
line in that YAML file!
 
C

Chris Gunnels

Phlip said:
This is a Rails question (Ruby is a language) - further discussion
belongs on
Ruby on Rails Talk forum at Google Groups.

Run this at a command prompt:

mysql -uroot

If you get in (very likely for out-of-the-box MySQL), then take out the
password
line in that YAML file!

Sorry new to ruby and rails...just learning it all. I tried that and I
get the same error, but this time it says password: NO
 
C

Chris Gunnels

Phlip said:
mysql -uroot -p

that means prompt for a password...

You could also reinstall mysql...

i took out the password in the database.yml file and now it says that my
devel database is Unknown. I made sure the database is there, so I don't
know what the problem is.
 
C

Chris Gunnels

i took out the password in the database.yml file and now it says that my
devel database is Unknown. I made sure the database is there, so I don't
know what the problem is.

BUMP
 
P

Phlip

Chris said:

No bump: Post a new, complete request to the Ruby on Rails Talk forum at Google
Groups!

Make sure to tell them what 'show databases;' returns inside MySQL!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top