Discussion of article "How to Access the MySQL Database from MQL5 (MQL4)" - page 26

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
in which folder do I save the DLL?
Hello Eugeniy,
can you provide a 64-version of MQLMySQL.dll. When loaded, mt prompts
Hello Eugeniy,
can you provide a 64-version of MQLMySQL.dll. When loaded, mt prompts
Sure, you can download compiled x64 DLLs from GitHub: https://github.com/elugovoy/MQLMySQL-Project/tree/master/MQLMySQL/x64/Release
Full repository of project: https://github.com/elugovoy/MQLMySQL-Project
Regards,
Eugene
Hello Eugeniy,
I was wondering if there is a way changing the code of reading the settings from the file
and use this assignment instead
is it is possible, as I am getting error message as Access violation read 0x00000000 MQLMySQL.dll
Any possible solution?
Hello Eugeniy,
I was wondering if there is a way changing the code of reading the settings from the file
and use this assignment instead
is it is possible, as I am getting error message as Access violation read 0x00000000 MQLMySQL.dll
Any possible solution?
maybe this help
It worked after I updated the version of OpenSSL. Thanks for listening.
Hi~
I also had the error question of [126]:
Cannot load'C:\Users\programer01\Desktop\MyMT5\MQL5\Libraries\MQLMySQL.dll' [126]
Cannot call'cMySqlVersion','MQLMySQL.dll' is not loaded
unresolved import function call
MARCOSmentioned that it is normal after updating the OpenSSL version
How can I update the OpenSSL version?
Thank you! ~
PS.
Because I am not familiar with this field
I want to ask again
I see that there are three dll files in your Libraries folder
1.libcrypto-1_1-x64.dll
2.libmysql.dll
3.libssl-1_1-x64.dll
I have installed MySQL software
Are these dll files copied from the path under ..\Program Files\MySQL?
If so, which folder was copied from?
Hi~
I also had the error question of [126]:
Cannot load'C:\Users\programer01\Desktop\MyMT5\MQL5\Libraries\MQLMySQL.dll' [126]
Cannot call'cMySqlVersion','MQLMySQL.dll' is not loaded
unresolved import function call
MARCOSmentioned that it is normal after updating the OpenSSL version
How can I update the OpenSSL version?
Thank you! ~
PS.
Because I am not familiar with this field
I want to ask again
I see that there are three dll files in your Libraries folder
1.libcrypto-1_1-x64.dll
2.libmysql.dll
3.libssl-1_1-x64.dll
I have installed MySQL software
Are these dll files copied from the path under ..\Program Files\MySQL?
If so, which folder was copied from?
Can anyone help me solve the same situation?
Thank you~~~~
maybe this help
Thanks alot. It solved the problem.
@Eugeniy Lugovoy
Good afternoon, Eugeniy. Thank you very much for the article. Could you please advise me? I have encountered the following problem: the dll works fine if I run the EA not on the tester. On the tester it gives the following error: "Cannot load 'C:\Users\...\MQL5\Libraries\MQLMySQL.dll' [126]". This makes it impossible to test the EA on historical data.
Problem context: I use the database to load input parameters for trading. I also save the necessary information after trading. The error is only on the tester.
What I have tried to do:
- add #property tester_library "MQLMySQL.dll"
- write the path to the dll separately in its entirety
- double-checked whether the file that is not loaded is in the folder.
Nothing helps, the file is in the folder, but I can't load it. Please tell me where else I can dig.
Please can someone confirm is I'm using the right connection string
I'm using "127.0.0.1" for the host
I'm using the user , pass , and database in quotes ( 3 seperate parameters )
I'm then puttting NULL for the socket and 0 for the client flag.
( My system is Win 10 )
I get an error saying no database connection when I try to execute an insert