I can't read the contents of my connection file on the operating system win2019. What's the reason? With the guidance of that expert, thank you
As I can see from the logs the host, user and database are empty, so you are connecting to nowhere. make sure your .ini file is located in right directory.
probably UAC changed the directory of terminal. for testing you may set database credentials directly in EA and make sure of successful connection.
请确认我使用的连接字符串是否正确。
我使用 "127.0.0.1 "作为主机
我使用了带引号的用户、密码和数据库(3 个独立参数)
然后,我将套接字设置为 NULL,将客户标志设置为 0。
(我的系统是 Win 10)
当我尝试执行插入操作时,出现了没有数据库连接的错误提示
首先,确保已加载 dll(没有错误 126 或更少),然后设置 socket = ""; 但不是 NULL。
其次,库中有一个变量SQLTrace,你可以将其设置为 true 并查看错误日志。
根据看到的日志,你可以查看 MySQL 文档来解决问题。
你好,尤金尼
我刚刚开始使用 MQL5 编程,并尝试在 MQL5 中使用 mysql、
我已将 x64 位版本复制到库文件夹中,但却出现了奇怪的错误,也许您或其他人可以帮助解决这个问题。
我将在下面附上屏幕截图
https://c.mql5.com/3/359/mysqlerror.png
谢谢
有人能帮我解决同样的问题吗?
谢谢~~~~
你可以更新 mfc,我在更新 mfc 时就解决了这个错误。
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
I can't read the contents of my connection file on the operating system win2019. What's the reason? With the guidance of that expert, thank you
I can't read the contents of my connection file on the operating system win2019. What's the reason? With the guidance of that expert, thank you
As I can see from the logs the host, user and database are empty, so you are connecting to nowhere. make sure your .ini file is located in right directory.
probably UAC changed the directory of terminal. for testing you may set database credentials directly in EA and make sure of successful connection.
我开始撰写新文章,介绍如何使用不同的数据库,如 MS SQL Server、MS Access、Oracle、IBM DB/2、PostgreSQL。
该决定将像这篇文章一样强大且易于使用,但我没有时间来完成它。
因此,如果您想支持这个项目,可以通过支付宝为我发送几美元:e.a.lugovoy@gmail.com。
金额多少并不重要,我只是想知道这样的决定是否真的需要完成。
谢谢大家、
尤金
@Eugeniy Lugovoy 我认为这是一个非常好的想法,你有进一步研究过吗?我认为最好先通过接口或抽象类来封装这些功能,然后再加以实现。我认为一个具有后台保持连接/超时功能的连接池将是一个很好的开端。我自己也是开发人员,我也可以帮忙。
另外,我想这个库还没有连接池功能吧?这个库似乎使用的是大约 2.5 年前(2019 年 9 月)发布的 8.0.18。还有更多可用的更新版本。能否更新到最新版本?
有人能确认在查询中使用 "LOAD DATA LOCAL INFILE "是否可行吗?
因为我试过很多次,但都失败了。
谢谢。
我可以很好地从 MT5 访问 Mysql,但就是不能使用 "LOAD DATA LOCAL INFILE "查询,什么也没发生。
有人能帮忙吗?
我尝试打印错误信息,显示如下:(我想可能是查询内容太长了)?
2022.08.28 15:11:27.151 MT52DB_Netting (MYM-U22,D1) CMD>1064: 您的 SQL 语法有错误;请查阅 与您的 MySQL 服务器版本相对应的手册,了解在第 1 行 "D:/Data_02/MT5/KGI/MQL5/Files/3000586_His.csv INTO TABLE `3000586_His` FIELDS TE "附近使用的正确语法。
MARCOS 提到 更新 OpenSSL 版本后出现这种情况是正常的
如何更新 OpenSSL 版本?
谢谢!~
PS.
因为我不熟悉这个领域
我想再问一次
我看到您的库文件夹中有三个 dll 文件
1.libcrypto-1_1-x64.dll
2.libmysql.dll
3.libssl-1_1-x64.dll
我已安装 MySQL 软件
这些 dll 文件是从 .\Program Files\MySQL 下的路径复制的吗?
如果是,是从哪个文件夹复制的?
我刚刚解决了更新 Visual Studio 的问题。
您可以从以下链接下载最新版本 --https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170