Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt and Database driver, linkage?
Forum Update on Monday, May 27th 2025

Qt and Database driver, linkage?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 198 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.
  • SPlattenS Offline
    SPlattenS Offline
    SPlatten
    wrote on last edited by
    #1

    I've been using Qt with a MariaDB database and having gone through the process of building the driver each time there is a version update I decided to build an application that I wouldn't re-compile with each new version, however it occurs to me that I don't know how the database driver is actually used by Qt. I was originally thinking that if I build an executable that the driver will be bound to the exe, but I really don't know.

    Can anyone help me understand this and if the driver is not part of the executable, what is the deployment process for ensuring the driver goes with the executable?

    Kind Regards,
    Sy

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      The database drivers are located in the corresponding plugins sub folder. They are not linked to your are application and are expected to be in that sub folder to be correctly found.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      SPlattenS 1 Reply Last reply
      1
      • SGaistS SGaist

        Hi,

        The database drivers are located in the corresponding plugins sub folder. They are not linked to your are application and are expected to be in that sub folder to be correctly found.

        SPlattenS Offline
        SPlattenS Offline
        SPlatten
        wrote on last edited by
        #3

        @SGaist , Thank you, I did see that there is also an embedded version of the MySQL driver, which looks like it can be linked in with the application, however external driver is better as I'm intending not to bind to any specific database but keep it as flexible as possible.

        Kind Regards,
        Sy

        1 Reply Last reply
        0

        • Login

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