It will let me go into mysql but I want to create a database. It is
not letting me. It says install gem mysql... I did that and got an
error. It reads "While generating documentation for mysql... MESSAGE:
Unhandled special: Special: type=17..." etc
Everything is working correct. I can log into MySQL. Ruby on Rails is
up on running on the localhost. It created the database for me. But
every time I use the rake db:migrate command it gives me the error.
"rake aborted!
Access denied for user 'root'@'localhost' (using password: YES)
(See full trace by running task with --trace)
I ran it with trace and got the following message:
"** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!"
It is acting like it is working. For example, I typed in rake
db:migrate and it created the databse and the post.rb file. But it is
still showing the error: "Access denied for user
'root'@'localhost' (using password: YES)"
That's saying that the password for root in database.yml is wrong;
are you saying that it's not? You can log in *using the exact same
information* as you've got in database.yml?
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: mysql
database: depot_development
username: root
password: root
host: localhost
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: mysql
database: depot_test
username: root
password: root
host: localhost