[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

rake db:migrate not working

Chris Gunnels

1/31/2009 5:03:00 PM

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
--
Posted via http://www.ruby-....

6 Answers

Phlip

1/31/2009 5:15:00 PM

0

Chris Gunnels wrote:

> 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!

--
Phlip
http://flea.sourceforge.net/Pigleg...

Chris Gunnels

1/31/2009 5:38:00 PM

0

Phlip wrote:

>
> 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
--
Posted via http://www.ruby-....

Phlip

1/31/2009 5:56:00 PM

0

Chris Gunnels wrote:

>> 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

mysql -uroot -p

that means prompt for a password...

You could also reinstall mysql...

Chris Gunnels

1/31/2009 6:57:00 PM

0

Phlip wrote:
> Chris Gunnels wrote:
>
>>> 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
>
> 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.
--
Posted via http://www.ruby-....

Chris Gunnels

1/31/2009 11:27:00 PM

0


>>> 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
>>
>> 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.

BUMP
--
Posted via http://www.ruby-....

Phlip

2/1/2009 12:46:00 AM

0

Chris Gunnels wrote:

>> 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

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!