Libraries: EAX_Mysql - mysql library

 

EAX_Mysql - mysql library:

This library allows an easy interface to mysql.

Author: Michael Schoen

 
Automated-Trading:

EAX_Mysql - mysql library:

Author: Michael Schoen

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.

 
Opens Up EA Interfacing In Another Direction...
 

Good work ... but... . bravo !

 

Michael thanks for the library. I am trying to configure it. When compiling it gives an error:

'EAX_mysql' - declaration without type

What can it be connected with?

 

In the examples, the class is EAX_mysql, and in the library it is described as EAX_Mysql

 

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.

 
danken00:

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.

Thank you. Fixed.
 

Good afternoon!

I have the following situation: When launching Metaeditor, it displays the warning "C++ compiler Microsoft Visual Studio 2005/2008/2010/2012 is not installed in the system". At the same time, I have Microsoft Visual Studio Express installed . During code execution, right after the db.connect line, it flies - without generating any errors or other nagging. Is it related to Microsoft Visual Studio and how can I fix it?

Thanks

 

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 ...