From: Micah Wolfe <52w7te9ara@...> Date: 2011-02-14T09:56:18+09:00 Subject: Re: Newbie having serious problems Thanks guys! Okay. At least now the script runs...unsuccessfully, but it runs. I had to add require 'rubygems' at the top because it wasn't recognizing 'mysql'. Now it's getting as far as line 11 (yea!!!)... ...where it craps out on this line. borderDB = Mysql::new('localhost', 'root', 'proot', 'dbname') (not my real proot, nor db name) and it gives me: ../../Developer/usr/bin/gen_encpolygons.rb:11:in `new': Access denied for user 'root'@'localhost' (using password: YES) (Mysql::Error) from ../../Developer/usr/bin/gen_encpolygons.rb:11:in `generate_js_border_overlay' from ../../Developer/usr/bin/gen_encpolygons.rb:95 (Yeah, I really need to fix my $PATH) I've checked Mysql, and I don't have any problem connecting. Could it be a port issue? I'm running MAMP, and it uses a non-standard port (8889) for Mysql, but I haven't had any other problems connecting to it via Ruby on the command line. Is this a Mysql issue, or a Ruby issue? Thanks again for the help, and for putting up with a desperate noobie. Best, Micah -- Posted via http://www.ruby-forum.com/.