Renato Viana
2010-Nov-21 14:25 UTC
Access denied for user ''root''@''localhost'' (using password: NO)
I am getting this message after run: ruby script/server and click in "About your application environment" in the browser. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Distilling Rails
2010-Nov-21 14:28 UTC
Access denied for user ''root''@''localhost'' (using password: NO)
I am getting this message when click in "About your application environment" -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hassan Schroeder
2010-Nov-21 14:36 UTC
Re: Access denied for user ''root''@''localhost'' (using password: NO)
On Sun, Nov 21, 2010 at 6:25 AM, Renato Viana <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am getting this message after run: ruby script/server and click in > "About your application environment" in the browser.You need to specify the appropriate username/password for your database in config/database.yml . Have you done any "getting started with Rails" tutorials? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
gezope
2010-Nov-22 13:35 UTC
Re: Access denied for user ''root''@''localhost'' (using password: NO)
Hello Renato, Find the file yourapp/config/database.yaml, open it, and set it well. You have to know your database username+password, if any. Any also the database have to installed, and the database''s gem also. Check it with ''mysql -v'' and ''gem list m'' or ''sqlite3 -v'' and ''gem list sq'', you will see if something is missing, then istall it. If you use ruby script/server instead of rails server, means that you use Rails 2.3.X version ,and not the latest Rails 3. Chack your versions: "ruby -v", "gem -v", "gem list", "rails -v". It''s a really good idea to update, since Rails 3 is completely refactored and many new ideas in it, so if you study Rails 2, you will need to restudy many things later. (sudo) "gem update" Or the best solution: install RVM, version manager, so you can choose which Ruby or Rails you wish to use. Good luck, Zoltán On nov. 21, 14:25, Renato Viana <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am getting this message after run: ruby script/server and click in > "About your application environment" in the browser. > > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
pradeek k
2012-Apr-18 03:59 UTC
Re: Access denied for user ''root''@''localhost'' (using password: NO)
1.grant all privileges in mysql with your yaml database 2.add password to your yaml 3.if yaml parse error,check whether you didnt leave any space in between your password and password line column,if not put one space,it has to follow in all all lines. for eg:password: your_password. 4.try rake db:migrate --trace On Sunday, November 21, 2010 7:55:38 PM UTC+5:30, Ruby-Forum.com User wrote:> > I am getting this message after run: ruby script/server and click in > "About your application environment" in the browser. > > -- > Posted via http://www.ruby-forum.com/. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/vAzlxvrhwlwJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Greg Akins
2012-Apr-18 11:57 UTC
Re: Re: Access denied for user ''root''@''localhost'' (using password: NO)
On Tue, Apr 17, 2012 at 11:59 PM, pradeek k <pradeek.k-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 1.grant all privileges in mysql with your yaml database > 2.add password to your yaml > 3.if yaml parse error,check whether you didnt leave any space in between > your password and password line column,if not put one space,it has to follow > in all all lines. > for eg:password: your_password. > 4.try rake db:migrate --trace >5. Check the date on the forum to make sure you didn''t respond to a year-old message.> On Sunday, November 21, 2010 7:55:38 PM UTC+5:30, Ruby-Forum.com User wrote: >> >> I am getting this message after run: ruby script/server and click in >> "About your application environment" in the browser. >> >> -- >> Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/vAzlxvrhwlwJ. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en.-- Greg Akins http://twitter.com/akinsgre -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Charles A. Lopez
2012-Apr-18 12:22 UTC
Re: Access denied for user ''root''@''localhost'' (using password: NO)
sounds like a permission issue on MySQL. if you have shell access, try getting on the SQL monitor with the username and password. On 21 November 2010 09:25, Renato Viana <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I am getting this message after run: ruby script/server and click in > "About your application environment" in the browser. > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.