Download MetaTrader 5
To add comments, please log in or register
How to test a program before buying?
Ingvar Engelbrecht
4412
Ingvar Engelbrecht 2016.02.27 19:41 

I have several version of mysql.dll on my Windows 10.

  -  I get a large negative number in return from  initmysql

  - I get access violation in libmysql.dll when doing real_connect.


What size of libmysql.dll 64 bit is the correct one?

Ingvar Engelbrecht
4412
Ingvar Engelbrecht 2016.02.27 22:58  

I took the libmysql.dll from the newly installed workbench.

Did not help.

Revived my code and compared to other code I had for MySQL. Did not find anything wrong.

Gave up and used the published wrapper

https://www.mql5.com/en/articles/932

Seems to work. Connect to datbase OK.

size libmysql.dll  5186 KB

How to Access the MySQL Database from MQL5 (MQL4)
How to Access the MySQL Database from MQL5 (MQL4)
  • 2014.10.21
  • Eugeniy Lugovoy
  • www.mql5.com
The article describes the development of an interface between MQL and the MySQL database. It discusses existing practical solutions and offers a more convenient way to implement a library for working with databases. The article contains a detailed description of the functions, the interface structure, examples and some of specific features of working with MySQL. As for the software solutions, the article attachments include the files of dynamic libraries, documentation and script examples for the MQL4 and MQL5 languages.
/
To add comments, please log in or register