Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. About creating qsqlmysql.dll
Qt 6.12 LTS is out! See what's new in the release blog

About creating qsqlmysql.dll

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 428 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Son DongSeong
    wrote on last edited by
    #1

    Hi, there.

    I want to create qsqlmysql.dll file using qt creator.
    I loaded the mysql project in source code of qt
    and then I added add mysql library
    Below is mysql.pro

    mysql.pro
    
    TARGET = qsqlmysql
    
    HEADERS += $$PWD/qsql_mysql_p.h
    SOURCES += $$PWD/qsql_mysql.cpp $$PWD/main.cpp
    
    #QMAKE_USE += mysql
    
    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/lib/' -llibmysql
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/lib/' -llibmysql
    INCLUDEPATH += $$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/include/'
    DEPENDPATH += $$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/include/'
    
    OTHER_FILES += mysql.json
    
    PLUGIN_CLASS_NAME = QMYSQLDriverPlugin
    include(../qsqldriverbase.pri)
    

    When I built it, the qsqlmysql.dll file was not created and the following files were created.

    enter image description here

    The following is the contents of the compile output window that appears when building.

    20:46:56: Running steps for project mysql...
    20:46:56: Configuration unchanged, skipping qmake step.
    20:46:56: Starting: "C:\Qt\Tools\QtCreator\bin\jom\jom.exe" 
        C:\Qt\Tools\QtCreator\bin\jom\jom.exe -f Makefile.Release all
        C:\Qt\Tools\QtCreator\bin\jom\jom.exe -f Makefile.Debug all
    20:46:57: The process "C:\Qt\Tools\QtCreator\bin\jom\jom.exe" exited normally.
    20:46:57: Elapsed time: 00:00.
    

    I would be grateful if you could tell me how to create the qsqlmysql.dll file
    Thank you.

    Christian EhrlicherC 1 Reply Last reply
    0
    • S Son DongSeong

      Hi, there.

      I want to create qsqlmysql.dll file using qt creator.
      I loaded the mysql project in source code of qt
      and then I added add mysql library
      Below is mysql.pro

      mysql.pro
      
      TARGET = qsqlmysql
      
      HEADERS += $$PWD/qsql_mysql_p.h
      SOURCES += $$PWD/qsql_mysql.cpp $$PWD/main.cpp
      
      #QMAKE_USE += mysql
      
      win32:CONFIG(release, debug|release): LIBS += -L$$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/lib/' -llibmysql
      else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/lib/' -llibmysql
      INCLUDEPATH += $$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/include/'
      DEPENDPATH += $$PWD/'../../../../../../../../Program Files/MySQL/MySQL Connector C 6.1/include/'
      
      OTHER_FILES += mysql.json
      
      PLUGIN_CLASS_NAME = QMYSQLDriverPlugin
      include(../qsqldriverbase.pri)
      

      When I built it, the qsqlmysql.dll file was not created and the following files were created.

      enter image description here

      The following is the contents of the compile output window that appears when building.

      20:46:56: Running steps for project mysql...
      20:46:56: Configuration unchanged, skipping qmake step.
      20:46:56: Starting: "C:\Qt\Tools\QtCreator\bin\jom\jom.exe" 
          C:\Qt\Tools\QtCreator\bin\jom\jom.exe -f Makefile.Release all
          C:\Qt\Tools\QtCreator\bin\jom\jom.exe -f Makefile.Debug all
      20:46:57: The process "C:\Qt\Tools\QtCreator\bin\jom\jom.exe" exited normally.
      20:46:57: Elapsed time: 00:00.
      

      I would be grateful if you could tell me how to create the qsqlmysql.dll file
      Thank you.

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Do not modify any pro file but follow the official documentation.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved