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?
- Help how to connect ea mql4 to mysql remote db
- Connecting to a MySql database
- Connecting to a MySQL database
up
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register