Alex:
Finally I got it working to connect to a MySQL database with libmysql.dll 64 bit on Metatrader5.
Now my question is: what is the latest implementation of a usable MySQlWrapper to handle reads and writes to DB (with some documentation)? I ask, because I find a lot of resources, but some are not working well or outdated.
Ok after fiddling around with all the problems for hours (32bit vs 64bit, Access violation, ....) I finally found this project: https://github.com/elugovoy/MQLMySQL-Project
This was also described as an article here (https://www.mql5.com/en/articles/932) but with outdated sources there. Now, the Github project sources works like a charm! Thank you very much @Eugeniy Lugovoy!

GitHub - elugovoy/MQLMySQL-Project: MQL & DLL libraries for working with MySQL database
- elugovoy
- github.com
The problem of interaction of MQL with databases is not new, however it's still relevant. Use of databases can greatly enhance the possibilities of MetaTrader: storage and analysis of the price history, copying trades from one trading platform to another, providing quotes/trades in real time, heavy analytical computations on the server side...

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
Finally I got it working to connect to a MySQL database with libmysql.dll 64 bit on Metatrader5.
Now my question is: what is the latest implementation of a usable MySQlWrapper to handle reads and writes to DB (with some documentation)? I ask, because I find a lot of resources, but some are not working well or outdated.