I just got my new powerbook and I''ve been trying to get up and running with Rails. I''ve gotten everything set up, but i''m running into some problems getting access to a database with rails. I can connect just fine using YourSQL and the command line. I can select tables, create db''s etc with no problem at all, however when using Rails, I always get an access denied error even though my database.yml file reflects the exact information that works via the command line and in YourSQL. The error: Access denied for user: ''root@localhost'' (Using password: YES) Again, the settings in my database.yml mirror what works elsewhere. Is this a bug with rails, or are there any issues that I''m not aware of? I''m running Tiger, with mysql bundled with MAMP. Thanks, -Justin Palmer Encytemedia.com typo.leetsoft.com _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 2005.05.06., at 21:21, Justin Palmer wrote:> I''m running Tiger, with mysql bundled with MAMP. >I had no good experiences with ruby on tiger at all, I had to get it rebuilt from darwinports. I hope Apple will fix this issue in the forthcoming update. Gábor
Try doing a "gem install mysql" On 5/6/05, Gábor SEBESTYÉN <segabor-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > On 2005.05.06., at 21:21, Justin Palmer wrote: > > > I''m running Tiger, with mysql bundled with MAMP. > > > I had no good experiences with ruby on tiger at all, I had to get it > rebuilt from darwinports. I hope Apple will fix this issue in the > forthcoming update. > > Gábor > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >
On 6.5.2005, at 22:21, Justin Palmer wrote:> I just got my new powerbook and I''ve been trying to get up and running > with Rails. > I''ve gotten everything set up, but i''m running into some problems > getting access to a database > with rails. > > I can connect just fine using YourSQL and the command line. I can > select tables, create db''s etc with no problem at all, however when > using Rails, I always get an access denied error even though my > database.yml file reflects the exact information that works via the > command line and in YourSQL. > > > The error: > Access denied for user: ''root@localhost'' (Using password: YES) > > Again, the settings in my database.yml mirror what works elsewhere. > Is this a bug with rails, or are there any issues that I''m not aware > of?If you have updated MySQL, you might need to rebuild/reinstall the MySQL/Ruby binding with correct configure information. //jarkko> > I''m running Tiger, with mysql bundled with MAMP. > > Thanks, > -Justin Palmer > Encytemedia.com > typo.leetsoft.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Jarkko Laine http://jlaine.net http://odesign.fi _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
nI finally got it worked out. I uninstalled MAMP and just went with the install from Mysql itself. I also followed the article on: http://wiki.rubyonrails.com/rails/ show/HowtoInstallOnOSXTiger which pretty much sums it all up. Make sure you install the bindings: sudo gem install mysql -- --with-mysql-dir=/usr/local/mysql Thanks, -Justin Palmer Encytemedia.com typo.leetsoft.com On May 6, 2005, at 4:10 PM, Jarkko Laine wrote:> On 6.5.2005, at 22:21, Justin Palmer wrote: > > >> I just got my new powerbook and I''ve been trying to get up and >> running with Rails. >> I''ve gotten everything set up, but i''m running into some problems >> getting access to a database >> with rails. >> >> I can connect just fine using YourSQL and the command line. I can >> select tables, create db''s etc with no problem at all, however >> when using Rails, I always get an access denied error even though >> my database.yml file reflects the exact information that works via >> the command line and in YourSQL. >> >> >> The error: >> Access denied for user: ''root@localhost'' (Using password: YES) >> >> Again, the settings in my database.yml mirror what works >> elsewhere. Is this a bug with rails, or are there any issues that >> I''m not aware of? >> > > If you have updated MySQL, you might need to rebuild/reinstall the > MySQL/Ruby binding with correct configure information. > > //jarkko > > >> >> I''m running Tiger, with mysql bundled with MAMP. >> >> Thanks, >> -Justin Palmer >> Encytemedia.com >> typo.leetsoft.com >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > -- > Jarkko Laine > http://jlaine.net > http://odesign.fi > _______________________________________________ > 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