EA access online database

 
Hello,

I need to find a way for my EA to check for valid account numbers so I prevent my clients to run it on multiple accounts. I store the account numbers in a database (mysql) online. How can the EA access that database?? 
 
better to use sqlite which has MQL5 builtin support
Documentation on MQL5: Working with databases
Documentation on MQL5: Working with databases
  • www.mql5.com
Working with databases - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
 

Create an api in server which accepts account number and return status of it. You may need help of web developer for this.

Then you can call this web api from your EA to check whether the account is allowed to use the EA.

Check below link in mql4 documentation for web request

https://docs.mql4.com/common/webrequest

WebRequest - Common Functions - MQL4 Reference
WebRequest - Common Functions - MQL4 Reference
  • docs.mql4.com
WebRequest - Common Functions - MQL4 Reference