I have created a new server to host a rails 3.2 app with a mysql server hosted on the same server.
I keep getting ‘xxxxx-xxxxx.linode.com’ is not allowed to connect to this MySQL server (Mysql2::Error)
I have checked over all the config and it seems correct. I can access the mysql server using the mysql command, sequal pro and also was able to do a rake db:migrate like this:
bundle exec rake db:migrate RAILS_EV=production
I am using passenger and this is my database.yml
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: nst_production
pool: 5
host: localhost
username: root
password: password
timeout: 5000
Any ideas ?
You better try to connect via socket.