I am trying to create an app that use mysql. I create the project has follow:
rails new appname -d mysql
I then when into the folder and did bundle install. and run the app has follow passenger start
Now this did work for a basic app, it gave me a typical rails app index.html. Which his fine although i then try to upload my version of rails into it, which works on my localmachine change the database.yml to my configuration with a username and stuff like that. Although if I try to run rake db:create RAILS_ENV=production
and then i get the following error:
Couldn't create database for {"adapter"=>"mysql2", "encoding"=>"utf8", "reconnect"=>false, "database"=>"domain_production", "pool"=>5, "username"=>"root", "password"=>"****", "host"=>"localhost"}, charset: , collation:Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
I also removed the index.html to have my own and i get a file list of my public folder.