[Blacklight-development] more blacklight getting started problems
Jonathan Rochkind
rochkind at jhu.edu
Thu May 1 13:14:37 EDT 2008
By the way, your documentation is excellent, thanks Matt!
Jonathan
Jonathan Rochkind wrote:
> Yeah, when I create a brand new rails skeleton, I get the same error.
> WEIRD. Okay, fun debugging of what's going on with my Rails
> environment today.
>
> Jonathan Rochkind wrote:
>>
>>
>> Jonathan Rochkind wrote:
>>> Sadly, no, it's "user". I guess I'll have to debug this the hard
>>> way. Stay tuned.
>>>
>>> Matt Mitchell wrote:
>>>> Jonathan,
>>>>
>>>> I can't quite say for sure what happening but, in your database.yml
>>>> file, is
>>>> it possible you're using "username" instead of "user"?
>>>>
>>>> Matt
>>>>
>>>> On Thu, May 1, 2008 at 11:16 AM, Jonathan Rochkind
>>>> <rochkind at jhu.edu> wrote:
>>>>
>>>>
>>>>> Okay, this is weird.
>>>>>
>>>>> I have setup my database.yml file properly to point to my mysql
>>>>> instance,
>>>>> where i have created databases accessible to the user
>>>>> 'blacklight'. That is
>>>>> the user I specify in my database.yml. (I am experienced with
>>>>> Rails, I know
>>>>> how it works).
>>>>>
>>>>> Yet, when I run the rake db:migrate, I get:
>>>>> Access denied for user 'root'@'localhost' (using password: YES)
>>>>>
>>>>>
>>>>> I don't know why it's trying to connect with that user in the
>>>>> first place,
>>>>> since that's NOT the user I've specified in my database.yml. Hmm,
>>>>> maybe
>>>>> something in your environment that does a db connection with some
>>>>> different
>>>>> configured password or connection or something? Very weird. Let's
>>>>> check out
>>>>> the rake trace... Gives me no real hints. Included below in case
>>>>> it gives
>>>>> someone else hints. I don't get it.
>>>>>
>>>>> [jrochki1 at testbox rails]$ rake db:migrate --trace
>>>>> (in /home/jrochki1/blacklight/rails)
>>>>> ** Invoke db:migrate (first_time)
>>>>> ** Invoke environment (first_time)
>>>>> ** Execute environment
>>>>> ** Execute db:migrate
>>>>> rake aborted!
>>>>> Access denied for user 'root'@'localhost' (using password: YES)
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:471:in
>>>>>
>>>>> `real_connect'
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:471:in
>>>>>
>>>>> `connect'
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:165:in
>>>>>
>>>>> `initialize'
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:88:in
>>>>>
>>>>> `new'
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:88:in
>>>>>
>>>>> `mysql_connection'
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:291:in
>>>>>
>>>>> `send'
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:291:in
>>>>>
>>>>> `connection='
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:259:in
>>>>>
>>>>> `retrieve_connection'
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
>>>>>
>>>>> `connection'
>>>>> /usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:294:in
>>>>>
>>>>> `migrate'
>>>>> /usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in
>>>>> `invoke_with_call_chain'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
>>>>> `synchronize'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in
>>>>> `invoke_with_call_chain'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in
>>>>> `invoke_task'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
>>>>> `top_level'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in
>>>>> `top_level'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
>>>>> `standard_exception_handling'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in
>>>>> `top_level'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in
>>>>> `standard_exception_handling'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run'
>>>>> /usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31
>>>>> /usr/bin/rake:16:in `load'
>>>>> /usr/bin/rake:16
>>>>>
>>>>>
>>>>> --
>>>>> Jonathan Rochkind
>>>>> Digital Services Software Engineer
>>>>> The Sheridan Libraries
>>>>> Johns Hopkins University
>>>>> 410.516.8886 rochkind (at) jhu.edu
>>>>>
>>>>> _______________________________________________
>>>>> Blacklight-development mailing list
>>>>> Blacklight-development at rubyforge.org
>>>>> http://rubyforge.org/mailman/listinfo/blacklight-development
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>>
>>>> _______________________________________________
>>>> Blacklight-development mailing list
>>>> Blacklight-development at rubyforge.org
>>>> http://rubyforge.org/mailman/listinfo/blacklight-development
>>>>
>>>
>>
>
--
Jonathan Rochkind
Digital Services Software Engineer
The Sheridan Libraries
Johns Hopkins University
410.516.8886
rochkind (at) jhu.edu
More information about the Blacklight-development
mailing list