connection problem on a remote db

 
I'm trying to connect to db mysql from a remote computer using an expert advisor

#include <mql4-mysql.mqh>
string  host     = "ip adress";
string  user     = "root";
string  pass     = "";
string  dbName   = "licensing";

int     port     = 3306;
int     socket   = 0;
int     client   = 0;

int     dbConnectId = 0;
bool    goodConnect = false;

  If I do it locally by writing localhost in the host variable it works, but if I write ip adress of another pc the ea is removed writing "Can't connect to MySQL server on 'ip adress'".I can connect to remote computer through browswer but not with expert.Can someone explain why?
 
up