1. Qmysql Driver Not Loaded
  2. Qsqldatabase Qmysql Driver Not Loaded
  3. Qsqldatabase Qoci Driver Not Loaded Free
  4. Qsqlite Driver Not Loaded
  5. Qsqldatabase Qoci Driver Not Loaded Key
  6. Qsqldatabase Qoci Driver Not Loaded On Iphone
Viewed 1k times

本文档中记录了QtCreator5.12下使用MVCS201764编译器连接Oracle12.2数据库时遇到的问题及解决方法,如: QSqlDatabase: QOCI driver not loaded,包括驱动的添加,数据库的安装配置,经过亲测通过,每一步都配有截图和代码,过程简单却十分详细。.

I know that there are few topics on the Internet about QPSQL driver not loaded problem but none of the solutions have helped me.

QSqlDatabase: QODBC driver not loaded If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. @@ -58,11 +62,13 @@ drivers of type QDB2 are available in this Qt.

Let's start from the beggining. This is what I'm using:

First of all I've tried to use tutorial from http://qt-project.org/doc/qt-4.8/sql-driver.html#qpsql . The problem with that solution is that cd %QTDIR% command result is changing my working directory to C:QtSDKDesktopQt4.7.4mingw which has not any src directory but fortunately has got pluginssqldrivers. Unfortunately there is no folder pqsl. Even if I ignore that problem and skip into next step - qmake 'INCLUDEPATH+=C:psqlinclude' 'LIBS+=C:psqllibmslibpq.lib' psql.pro it shows me that it cannot find file psql.pro and there is no psql.pro file in my whole Qt directory. I've decided to leave that solution and to find another one.

Somewhere in the Web I've found that I need to write those lines into my .pro file:

Safety goggles) when drilling holes, etc. Always follow the manufacturer’s advice when using power tools and wear suitable protective equipment (e.g. Honeywell wireless door chime.

I've done that. But the driver not loaded problem is still appearing.

What should I do. Am I missing something?

If it helps after running

command it displays only ('QSQLITE')

P.S. I hope that my problem is understandable - english is not my native language.

Doro
DoroDoro

Browse other questions tagged qtmingw-w64 or ask your own question.

Active2 years, 1 month ago

I've just done developing a QT CRUD Application. I am using SQLite to store the information locally in my disk where the application is running. This way my application works fine.

But the app lack the the a central database server. Therefor, I started by installing MySql-server and MySql-workbench. I imported my DB in the workbench and made sure the server is running.

Now on Qt, I wrote the following lines to conenct to my server on the 'localhost ' using port '3306' as follow:

However, I get the following error on QT 'Application Outout ':

QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QODBC QODBC3 QPSQL QPSQL7

Qmysql Driver Not Loaded

I tried to make sure that libmysql.dll is located in 'C:Program FilesMySQLMySQL Server 5.7lib' .

I copied it also to 'C:UsersAbubakrDocumentsGitHubDEBUGbuild-Muwassa-Desktop_Qt_5_4_2_MinGW_32bit2-debug'

but it is not working at all.

Please help !!

Qsqldatabase Qmysql Driver Not Loaded

McLan
McLanMcLan
1,2866 gold badges30 silver badges59 bronze badges

Qsqldatabase Qoci Driver Not Loaded Free

1 Answer

Qsqlite Driver Not Loaded

You need to build the QMYSQL driver by yourself first.

Qsqldatabase Qoci Driver Not Loaded Key

When you download Qt you have also the source that are provided with it.

In my case, it is in : C:Qt5.9SrcqtbasesrcpluginssqldriversmysqlHere you have a *.pro (that is a kind of makefile generator). You just have to open it with QtCreator, Compile it and you will get a dll. This dll is the MySQL driver and must be in the same dirent of your application.

To do that, if you have a problem with the compilation (like mysql.h not found), you must 'install' mysql library also.

In Linux you can have the same issue as well.

Antoine MorrierAntoine Morrier

Qsqldatabase Qoci Driver Not Loaded On Iphone

Not the answer you're looking for? Browse other questions tagged c++mysqlqtsqlite or ask your own question.