Rake db:create doesn't end
Hey guys I recently installed mysql2 on Windows using this command: gem install mysql2 -v 0.2.7
and added the mysql2 gem to my project's gemfile. I then ran bundle install with no problems, but when I try to do this command: rake db:create -- trace
I get this:
C:\rails_apps\app>rake db:create --trace
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
And then nothing happens. If anyone knows the solution, please tell me. Thanks.
P.S.: I'm running Rails 3.1.0.rc8
Here's my database.yml:
development:
adapter: mysql2
encoding: utf8
database: ***
userna开发者_JAVA技巧me: ***
password: ***
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: mysql2
encoding: utf8
database: ***
username: ***
password: ***
host: localhost
production:
adapter: mysql2
encoding: utf8
database: ***
username: ***
password: ***
host: localhost
I only recently upgraded to Rails 3.1. Before that (on Rails 3.0) everything was working fine.
Go through this http://railsapps.github.com/installing-rails-3-1.html It may be helpful for you.. What is your rake version?
1) Try restart postgresql
sudo service postgresql restart
2) If it not help try install Passenger
https://www.digitalocean.com/community/articles/how-to-install-rails-apache-and-mysql-on-ubuntu-with-passenger
doc http://www.modrails.com/documentation/Architectural%20overview.html#_overview
Hope it's help you
do bundle install on this app folder
精彩评论