I am having trouble setting up the Mysql database. Every time I run rake db:create:all I receive this error:
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>false, "database"=>"ror_ecommerce_development", "pool"=>5, "username"=>"root", "password"=>"root", "host"=>"localhost", "socket"=>"/tmp/mysql.sock"}, {:charset=>"utf8", :collation=>"utf8_unicode_ci"}
(If you set the charset manually, make sure you have a matching collation)
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>false, "database"=>"ror_ecommerce_test", "pool"=>5, "username"=>"root", "password"=>"root", "host"=>"localhost", "socket"=>"/tmp/mysql.sock"}, {:charset=>"utf8", :collation=>"utf8_unicode_ci"}
(If you set the charset manually, make sure you have a matching collation)
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>false, "database"=>"ror_ecommerce_production", "pool"=>5, "username"=>"root", "password"=>"root", "socket"=>"/tmp/mysql.sock"}, {:charset=>"utf8", :collation=>"utf8_unicode_ci"}
(If you set the charset manually, make sure you have a matching collation)
I have tried a couple solutions that were mentioned on stack over flow, they are as follows:
changed the database names from: ror_ecommerce_development to db/development.mysql2
I don't really understand this problem, if someone could please provide a reference on how to solve this problem I would greatly appreciate it.