You&#39;re using 2.0.2 right? That is strange.<br><br>Matt<br><br><div class="gmail_quote">On Thu, May 1, 2008 at 1:05 PM, Jonathan Rochkind &lt;<a href="mailto:rochkind@jhu.edu">rochkind@jhu.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hmm, it looks like it&#39;s the REVERSE of what Matt said.<br>
<br>
&quot;username&quot; is the _correct_ key, NOT &quot;user&quot;. I was using &quot;user&quot; because that&#39;s what was in the same file. Weird. &quot;user&quot; works for you guys rather than &quot;username&quot;. &nbsp;My Rails installation wants &quot;username&quot;, NOT &quot;user&quot;. Very odd.<br>
<font color="#888888">
<br>
Jonathan</font><div><div></div><div class="Wj3C7c"><br>
<br>
Jonathan Rochkind wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>
Jonathan Rochkind wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Sadly, no, it&#39;s &quot;user&quot;. &nbsp;I guess I&#39;ll have to debug this the hard way. Stay tuned.<br>
<br>
Matt Mitchell wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Jonathan,<br>
<br>
I can&#39;t quite say for sure what happening but, in your database.yml file, is<br>
it possible you&#39;re using &quot;username&quot; instead of &quot;user&quot;?<br>
<br>
Matt<br>
<br>
On Thu, May 1, 2008 at 11:16 AM, Jonathan Rochkind &lt;<a href="mailto:rochkind@jhu.edu" target="_blank">rochkind@jhu.edu</a>&gt; wrote:<br>
<br>
&nbsp;<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Okay, this is weird.<br>
<br>
I have setup my database.yml file properly to point to my mysql instance,<br>
where i have created databases accessible to the user &#39;blacklight&#39;. That is<br>
the user I specify in my database.yml. (I am experienced with Rails, I know<br>
how it works).<br>
<br>
Yet, when I run the rake db:migrate, I get:<br>
Access denied for user &#39;root&#39;@&#39;localhost&#39; (using password: YES)<br>
<br>
<br>
I don&#39;t know why it&#39;s trying to connect with that user in the first place,<br>
since that&#39;s NOT the user I&#39;ve specified in my database.yml. Hmm, maybe<br>
something in your environment that does a db connection with some different<br>
configured password or connection or something? Very weird. Let&#39;s check out<br>
the rake trace... Gives me no real hints. Included below in case it gives<br>
someone else hints. I don&#39;t get it.<br>
<br>
[jrochki1@testbox rails]$ rake db:migrate --trace<br>
(in /home/jrochki1/blacklight/rails)<br>
** Invoke db:migrate (first_time)<br>
** Invoke environment (first_time)<br>
** Execute environment<br>
** Execute db:migrate<br>
rake aborted!<br>
Access denied for user &#39;root&#39;@&#39;localhost&#39; (using password: YES)<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:471:in <br>
`real_connect&#39;<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:471:in <br>
`connect&#39;<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:165:in <br>
`initialize&#39;<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:88:in <br>
`new&#39;<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/mysql_adapter.rb:88:in <br>
`mysql_connection&#39;<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:291:in <br>
`send&#39;<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:291:in <br>
`connection=&#39;<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:259:in <br>
`retrieve_connection&#39;<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in <br>
`connection&#39;<br>
/usr/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/migration.rb:294:in <br>
`migrate&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/tasks/databases.rake:85<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `call&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:546:in `execute&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `each&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:541:in `execute&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:508:in<br>
`invoke_with_call_chain&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in `synchronize&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:501:in<br>
`invoke_with_call_chain&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:494:in `invoke&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1931:in `invoke_task&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `each&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1909:in `top_level&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in<br>
`standard_exception_handling&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1903:in `top_level&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1881:in `run&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1948:in<br>
`standard_exception_handling&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake.rb:1878:in `run&#39;<br>
/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/bin/rake:31<br>
/usr/bin/rake:16:in `load&#39;<br>
/usr/bin/rake:16<br>
<br>
<br>
-- <br>
Jonathan Rochkind<br>
Digital Services Software Engineer<br>
The Sheridan Libraries<br>
Johns Hopkins University<br>
410.516.8886 rochkind (at) <a href="http://jhu.edu" target="_blank">jhu.edu</a><br>
<br>
_______________________________________________<br>
Blacklight-development mailing list<br>
<a href="mailto:Blacklight-development@rubyforge.org" target="_blank">Blacklight-development@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/blacklight-development" target="_blank">http://rubyforge.org/mailman/listinfo/blacklight-development</a><br>
<br>
 &nbsp; &nbsp;<br>
</blockquote>
<br>
 &nbsp;------------------------------------------------------------------------ <br>
<br>
_______________________________________________<br>
Blacklight-development mailing list<br>
<a href="mailto:Blacklight-development@rubyforge.org" target="_blank">Blacklight-development@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/blacklight-development" target="_blank">http://rubyforge.org/mailman/listinfo/blacklight-development</a><br>
 &nbsp;<br>
</blockquote>
<br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
Jonathan Rochkind<br>
Digital Services Software Engineer<br>
The Sheridan Libraries<br>
Johns Hopkins University<br>
410.516.8886 rochkind (at) <a href="http://jhu.edu" target="_blank">jhu.edu</a><br>
<br>
_______________________________________________<br>
Blacklight-development mailing list<br>
<a href="mailto:Blacklight-development@rubyforge.org" target="_blank">Blacklight-development@rubyforge.org</a><br>
<a href="http://rubyforge.org/mailman/listinfo/blacklight-development" target="_blank">http://rubyforge.org/mailman/listinfo/blacklight-development</a><br>
</div></div></blockquote></div><br>