ADO错误:0x80040E14在Microsoft OLEDB提供商的ODBC驱动程序[ODBC 8.0(a)] [MySQLD-8.0.20]中,您在SQL Syntax中有错误
我们已经在LabView中使用MySQL作为数据库构建了基于RFID的系统标识应用程序。
我们在两台相似的计算机上运行一个相同的软件。在两台计算机上应用正确运行之前的几个月。现在,一个人运行顺利,但是第二个会给以下错误。
ADO错误:0x80040E14在Microsoft Ole DB提供商中出现了ODBC驱动程序[MySQL] [MySQL] [ODBC 8.0(a)] [MySQLD-8.0.20]您的SQL语法中的错误; 以对应于“ RFID_TAG_NUMBER”附近的正确语法yo用户在Ni_database_api.lvlib中的第1行中的第1行:conn execute.vi ... toll file的路径。
检查手册对应您的MySQL版本, 在错误中,请参阅RFID_TAG_NUMBER之前的双重逗号,但是在我们的代码中,我们只使用了单个倒逗号,因为它是一个字符串值,我们尝试从计算机上复制完整的应用程序,但仍将其正确地运行到第二个计算机,但仍在 。
获得相同的错误 在正确运行的计算机中 - 在MySQL Workbench> gt; gt;服务器状态中,配置路径为 我的SQL Server 5.7 \ my.ini
在第二台计算机中,它是 我的SQL Server 8.0 \ my.ini 。
我们不知道这是错误的原因还是配置路径如何影响应用程序。我们甚至试图在此问题上完全从计算机中删除MySQL Server 8.0,并安装了MySQL Server 5.7,但路径仍然保持不变。
谁能帮助我们?我们是与MySQL合作的LabView的新手。
We have built RFID based system identification application in LabView using MySQL as database.
We have one same software running on two similar computers. Few months before application was running properly on both the computers. Now one is running smoothly but the second one gives following error.
ADO error: 0x80040e14 exception occurred in microsoft ole db provider for odbc drivers [MYSQL] [ODBC 8.0(a)] [mysqld-8.0.20] You have an error in your SQL syntax; check the manual corresponds to your MySQL version for the right syntax yo user near "RFID_tag_number' at line 1 in NI_Database_API.lvlib:Conn Execute.vi...till path of the file.
As you can see there is double inverted comma before RFID_tag_number in the error, but in our code we have only used single inverted comma as it is a string value. We tried to copy complete application from the computer where it is properly running to the second computer but still getting the same error.
The only difference between both computers we found is -
In the computer running properly - In MySQL Workbench >Administrator >Server Status, the Configuration Path is My SQL Server 5.7\my.ini
And in the second computer it is My SQL Server 8.0\my.ini.
We don't know if this is the reason for the error or how the configuration path affects the application. We even tried to remove MySQL server 8.0 completely from computer with the issue and installed MySQL server 5.7 but still the path remained same.
Can anyone help us? We are new to LabView working with MySQL.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我了解的是,错误会出现错误的查询,可能需要处理特殊字符。
第二,如果两个系统都可以访问相同的数据库
,系统也需要我的MySQL和ODBC驱动程序。
第三,当您尝试删除MySQL时,在C驱动器中删除隐藏的文件,然后安装新版本
What I understand, error will throw for incorrect query,it might be required handling special characters.
Second if same data base access by both system
,system required same version my mysql and odbc driver also.
Third, when you try to remove mysql, delete hidden files in c drive then install new version