I need to have access to my vbulletin forum database on other server than my rails app.
I created vbulletin
entry in database.yml
vbulletin:
adapter: mysql2
encoding: latin2
database: db_name
username: username
password: password
host: forum.hostname.pl
port: 3306
And created simple model vbuser.rb
class Vbuser < ActiveRecord::Base
establish_connection(:vbulletin)
self.table_name = 'user'
end
Now, I'm trying run Vbuser.last
in console but get :
Mysql2::Error: Can't connect to MySQL server on 'forum.hostname.pl' (110)
What can be the problem?