RichardIII
Programmer
Hi All,
I tried to develop my own Rails app following the book "Agile Web Development with Rails" in a generalway, but got stuck. So I opted to try to follow the book faithfully to
see if I could get its example working.
I'm stuck on the command:
[snip]\work\depot>ruby script/generate scaffold Product Admin
It seems to work well for 10 lines or so but then complains:
#28000Access denied for user 'root'@'localhost' (using password: NO)
I assume the generator is using the database.yml parameters from the
development section,
which are:
development:
adapter: mysql
database: depot_development
username: root
password:xxxxxx
I confirmed that the generator was using this section by changing all
three usernames. The name in this section popped up in the error
message.
I think the error message means the generator wasn't passing along any
password because some other setting somewhere indicates that it need
not do so in this environment. Does this ring a bell with anyone?
I found one entry on the web claiming that this error message no longer
appeared after the user issued grant commands. Earlier in this
session, I had issued:
mysql> grant all on depot_development.* to 'root'@'localhost';
Query OK, 0 rows affected (0.03 sec)
mysql> grant all on depot_test.* to 'root'@'localhost';
Query OK, 0 rows affected (0.01 sec)
mysql> grant all on depot_production.* to 'root'@'localhost';
Query OK, 0 rows affected (0.00 sec)
Any ideas?
Thanks in advance,
Richard
I tried to develop my own Rails app following the book "Agile Web Development with Rails" in a generalway, but got stuck. So I opted to try to follow the book faithfully to
see if I could get its example working.
I'm stuck on the command:
[snip]\work\depot>ruby script/generate scaffold Product Admin
It seems to work well for 10 lines or so but then complains:
#28000Access denied for user 'root'@'localhost' (using password: NO)
I assume the generator is using the database.yml parameters from the
development section,
which are:
development:
adapter: mysql
database: depot_development
username: root
password:xxxxxx
I confirmed that the generator was using this section by changing all
three usernames. The name in this section popped up in the error
message.
I think the error message means the generator wasn't passing along any
password because some other setting somewhere indicates that it need
not do so in this environment. Does this ring a bell with anyone?
I found one entry on the web claiming that this error message no longer
appeared after the user issued grant commands. Earlier in this
session, I had issued:
mysql> grant all on depot_development.* to 'root'@'localhost';
Query OK, 0 rows affected (0.03 sec)
mysql> grant all on depot_test.* to 'root'@'localhost';
Query OK, 0 rows affected (0.01 sec)
mysql> grant all on depot_production.* to 'root'@'localhost';
Query OK, 0 rows affected (0.00 sec)
Any ideas?
Thanks in advance,
Richard