Hello all, When running the script from the BetaBook... ruby generate/script scaffold Product ...the script works until it ends with the error "#28000Access denied for ''root''@''localhost'' (using password: NO)" I am using mysql 4.1.12a (recently installed) with Rails 0.12.1 on window XP. The development section of database.yml has username and password both blank, as it is in the betabook. This problem was not happening until I upgraded from an older mysql version. So it appears I have mysql misconfigured (right?). Any tips on how to get this right? Brian _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Hi! Try to write ''root'' as username in database.yml for your development section. 2005/6/16, Brian Buckley <briankbuckley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> > Hello all, > > When running the script from the BetaBook... > > ruby generate/script scaffold Product > > ...the script works until it ends with the error "#28000Access denied for > ''root''@''localhost'' (using password: NO)" > > I am using mysql 4.1.12a (recently installed) with Rails 0.12.1 on window > XP. The development section of database.yml has username and password both > blank, as it is in the betabook. This problem was not happening until I > upgraded from an older mysql version. > > So it appears I have mysql misconfigured (right?). Any tips on how to get > this right? > > Brian > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
It might also be that you need to enable access from localhost for the ''root'' user for your database - see http://dev.mysql.com/doc/mysql/en/grant.html On 6/16/05, Jorge Mesa <jorge.mesa-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi! > Try to write ''root'' as username in database.yml for your development > section. > > > 2005/6/16, Brian Buckley <briankbuckley-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > > > Hello all, > > > > When running the script from the BetaBook... > > > > ruby generate/script scaffold Product > > > > ...the script works until it ends with the error "#28000Access denied for > ''root''@''localhost'' (using password: NO)" > > > > I am using mysql 4.1.12a (recently installed) with Rails 0.12.1 on window > XP. The development section of database.yml has username and password both > blank, as it is in the betabook. This problem was not happening until I > upgraded from an older mysql version. > > > > So it appears I have mysql misconfigured (right?). Any tips on how to get > this right? > > > > Brian > > > > > > > > > > _______________________________________________ > > Rails mailing list > > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > > > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-- sam http://www.magpiebrain.com/