I have the following problem:
I'm trying to connect to a mysql database on my remote host. I use the following ruby code
client = Mysql2::Client.new(:host => HOST, :username => USER, :password => PASS)
But what I am getting is:
Mysql2::Error:
Can't connect to MySQL server on HOST (4)
I can connect to the host from the command line, using
mysql -u USER -p -h HOST
I can also connect with the command above (client = Mysql2::...) to the DB, that runs in VirtualBox.
What am I missing? Thanks!