文章 "如何从 MQL5 (MQL4) 访问 MySQL 数据库" - 页 22

 

有人转换为 UTF-8 吗?

 
很棒的图书馆。可惜不支持西里尔字母。
 
phlixetrader:

通过在 Visual Studio 2017 中创建 x64 配置,我解决了 64 位 Windows (7) 的一些问题。(并找到了最新的 mysql 库)。

我建议作者把源代码放到 github 上,这样就可以由社区来维护了。

感谢Eugeniy Lugovoy 提供的一流软件:)

你好、

您能为我们提供解决方案吗?我正在努力解决这个问题,但我对 c++ 和 VS 毫无经验。

谢谢。

 
Eugeniy Lugovoy,你太棒了。感谢您分享 64 位版本的 MQLMySQL.dll。
 

Alnamri Alnamri:

我也有同样的问题

"Cannot load 'C:\Users\Admin\AppData\Roaming\MetaQuotes\Tester\D0E8209F77C8CF37AD8BF550E51FF075\Agent-127.0.0.1-3000\MQL5\libraries\MQLMySQL.dll'"

"不能调用'cMySqlVersion','...\libraries\MQLMySQL.dll'未加载"

"未解决的导入函数调用"


我在等待您的帮助.........

你好,Alnamri,
我不知道你是否仍然有这个问题,但我通过更改......来解决了这个 问题:

#import "..\libraries\MQLMySQL.dll"
改为
#import "..\libraries\MQLMySQL.dll"

("\libraries\MQLMySQL.dll'未加载 " 错误只出现在 Strategy Tester 中)

这个库非常好用,感谢程序员。

 

Hello for resolve the mistake:


"Cannot load 'C:\Users\Admin\AppData\Roaming\MetaQuotes\Tester\D0E8209F77C8CF37AD8BF550E51FF075\Agent-127.0.0.1-3000\MQL5\libraries\MQLMySQL.dll'"

"无法调用'cMySqlVersion','...\libraries\MQLMySQL.dll'未加载"

"未解决导入函数调用 问题


您必须从 visual studio 打开项目并重新编译所有内容,然后再将 DLL 添加到 MT5 或 MT4 中。


工作 x64:

2019.12.27 17:26:05.437 MySQL-001 (EURUSD,M1) MQLMySQL v2.2 x64 版权所有 © 2014, FxCodex Laboratory
2019.12.27 17:26:05.438 MySQL-001 (EURUSD,M1) Host:, User: , Database:
2019.12.27 17:26:05.438 MySQL-001 (EURUSD,M1) Connecting...
2019.12.27 17:26:07.458 MySQL-001 (EURUSD,M1) 已连接!DBID#0
2019.12.27 17:26:09.460 MySQL-001 (EURUSD,M1) 已连接!DBID#1
2019.12.27 17:26:11.463 MySQL-001 (EURUSD,M1) 已连接!DBID#2
2019.12.27 17:26:11.463 MySQL-001 (EURUSD,M1) 所有连接已关闭。脚本完成!

Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
Documentation on MQL5: Constants, Enumerations and Structures / Named Constants / Predefined Macro Substitutions
  • www.mql5.com
//| Expert initialization function                                   | //| Expert deinitialization function                                 | //| Expert tick function                                             | //| test1                                                            |...
 

大家好。

我已经重建了 DLL 和 MQL 库(MQLMySQL)以支持 unicode,现在正在审查所有源代码,很快就会在 GitHub 上分享。

此外,我正在测试 MQLAdoDB项目,以便使用 AdoDB 和 OLEDB 从 MQL 处理不同的数据库(MS SQL、Oracle、PostgreSQL、MS Access 等)。

该项目也将很快在 GitHub 上发布,当然是免费的。

致以最诚挚的问候、

尤金

 
 
MQLMySQL 库 3.0 版已发布并发布在 GitHub 上功能集
- MQL5 x64 (old school) - 功能集
- MQL5 x64 (classes) - MQL5 的类

<删除


新年快乐,祝开发顺利!

尤金

elugovoy/MQLMySQL-Project
elugovoy/MQLMySQL-Project
  • 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...
 
MQLMySQL 库 3.0 版已发布并公布在 GitHub 上:https://github.com/elugovoy/MQLMySQL-Project。

任何进一步的修复和更新都将发布到 GitHub 代码库中。

现在支持 UTF-8 代码页。

项目 包含 3 个目录
- MQL4 x86 - 函数集
- MQL5 x64 (old school) - 一组函数
- MQL5 x64 (classes) - MQL5 的类。

所有详细信息请参见 README.md
elugovoy/MQLMySQL-Project
elugovoy/MQLMySQL-Project
  • 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...