Hi Michael,
There is some typos on your example script, e.g. EAX_mysql should be EAX_Mysql (case-sensitive) but anyway thanks for the great script.
Good work ... but... . bravo !
Thanks very much for taking the time to build and share this. Just another quick fix:
- Download Connector/C (libmysql) for your environment (32 or 64bit) and put libymsql.dll into "MQL5\Include".
The .dll should go in MQL5\Libraries, not in MQL5\Include.
Thanks very much for taking the time to build and share this. Just another quick fix:
- Download Connector/C (libmysql) for your environment (32 or 64bit) and put libymsql.dll into "MQL5\Include".
The .dll should go in MQL5\Libraries, not in MQL5\Include.
Dear Michael,
I try to use your library.
Unfortunately I have not been able to able to make it work.
I found two little typo error in the example "Reading Data":
- at the end of line of code "db.connect("myhost.mydomain.com", "myusername", "mypassword", "mydatabase", "mytable")" the ";" is missing
- In the line EAX_mysql *db = new EAX_Mysql(); ==> EAX_Mysql*db = new EAX_Mysql() (the case of "EAX_mysql");
I follow your installing guide. Using the debug I see all block at function "connect" at row 416 with the call "mysql_init(0)".
I have use the mysql-connector-c-6.1.2-winx64.
Thanks
Gianfrancioschio
Hi gianfrancio,
I'd assume that the DLL's do not fit your metatrader platform; you will need a 64 bit mysql DLL if you use a 64bit of metatrader and a 32bit mysql DLL for 32bit metatrader...
Thx for the doc remarks.. I'll try to fix it ...
I found error .
DS 2 14:14:56.980 DbTest01 (CHG,M5) 2015.01.01 00:00:00 Access violation at 0x00007FFE02A4560E read to 0x0000000088FE0C50 in 'C:\Users\arno\AppData\Roaming\MetaQuotes\Tester\D0E8209F77C8CF37AD8BF550E51FF075\Agent-127.0.0.1-3000\MQL5\Libraries\libmysql.dll'Hey man,
I am trying to run a backtest here and I get an error "Cannot call 'mysql_init', 'libmysql.dll' is not loaded".
Apparently he is not being able to load the DLL file but I checked and it is there. Any idea?
PS: I have the Allow DLL checked in the Terminal Options --> Expert Advisor

- www.mql5.com

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
EAX_Mysql - mysql library:
Author: Michael Schoen