gpt4 book ai didi

c++ - Qt SQL MYSQL 驱动程序未在发货时加载

转载 作者:行者123 更新时间:2023-11-29 20:51:22 27 4
gpt4 key购买 nike

我知道这个问题每天被问 500 次,但我无法控制自己。

我有一个 QT 程序,在生产中运行得非常好,但在交付时却找不到 SQL 驱动程序。

我读到 libmysql.dll 必须位于 ./sqldrivers 中,但它无论如何都不起作用。

这是我的项目文件:

21.06.2016  15:00    <DIR>          .
21.06.2016 14:51 <DIR> ..
21.06.2016 14:51 230.400 bass.dll
21.06.2016 14:51 36.864 basscd.dll
21.06.2016 14:51 203.776 Qt5Sql.dll
21.06.2016 14:51 5.664.256 Qt5Core.dll
21.06.2016 14:51 6.019.072 Qt5Gui.dll
21.06.2016 14:51 5.295.104 libmysql.dll
21.06.2016 14:51 5.472.768 Qt5Widgets.dll
21.06.2016 14:51 420.352 test.exe
21.06.2016 14:51 635.040 msvcp140.dll
21.06.2016 14:51 332.968 concrt140.dll
21.06.2016 14:51 5.624.984 mfc140.dll
21.06.2016 14:51 105.120 mfcm140.dll
21.06.2016 14:51 552.608 vcamp140.dll
21.06.2016 14:51 390.320 vccorlib140.dll
21.06.2016 14:51 205.984 vcomp140.dll
21.06.2016 14:51 88.752 vcruntime140.dll
21.06.2016 14:51 213.680 VSCover140.dll
21.06.2016 14:51 274.600 VSPerf140.dll
21.06.2016 14:51 1.020.928 qwindows.dll
21.06.2016 14:52 <DIR> platforms
21.06.2016 14:56 <DIR> sqldrivers
19 Datei(en), 32.787.576 Bytes
4 Verzeichnis(se), 45.801.472 Bytes frei

/sqldrivers
21.06.2016 14:56 <DIR> .
21.06.2016 15:00 <DIR> ..
26.02.2015 00:27 5.191.680 libmysql.dll
1 Datei(en), 5.191.680 Bytes
2 Verzeichnis(se), 45.801.472 Bytes frei

/platforms
21.06.2016 14:52 <DIR> .
21.06.2016 15:00 <DIR> ..
21.06.2016 14:52 1.249.280 qwindows.dll
21.06.2016 14:51 35.840 qminimal.dll
21.06.2016 14:51 99.840 qminimald.dll
21.06.2016 14:51 2.920.448 qminimald.pdb
21.06.2016 14:51 664.064 qoffscreen.dll
21.06.2016 14:52 1.304.576 qoffscreend.dll
21.06.2016 14:52 5.386.240 qoffscreend.pdb
21.06.2016 14:52 2.620.416 qwindowsd.dll
21.06.2016 14:52 12.578.816 qwindowsd.pdb
9 Datei(en), 26.859.520 Bytes
2 Verzeichnis(se), 45.801.472 Bytes frei

问题出在哪里?

最佳答案

就是这样,qsqlmysql.dll(位于plugins/sqldrivers中)丢失我刚刚将 dll 复制到 %Appdir%/sqldrivers 中,它就可以工作了

关于c++ - Qt SQL MYSQL 驱动程序未在发货时加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38017589/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com