Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Mysql MacOs deploy
Forum Updated to NodeBB v4.3 + New Features

Qt Mysql MacOs deploy

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 241 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.
  • P Offline
    P Offline
    Piotrek102
    wrote on last edited by
    #1

    Hi, I have an application using the mysql plugin. I compiled the plugin myself and everything works fine inside QtCreator. The application connects to the database normally. When I compile the app in release version, then copy the app file to another folder and execute mcdeployqt on it, I have a problem. Inside the .app file, in the Plugins folder, I have a sqldrivers folder with all SQL plugins, including my mySQL. Despite this, the application has problems with activating the plugin. After running the unix application itself, I get the following errors:
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QMARIADB QMYSQL QODBC QPSQL

    If anyone had a similar problem and managed to solve it, I would be grateful for help.

    jsulmJ 1 Reply Last reply
    0
    • P Piotrek102

      Hi, I have an application using the mysql plugin. I compiled the plugin myself and everything works fine inside QtCreator. The application connects to the database normally. When I compile the app in release version, then copy the app file to another folder and execute mcdeployqt on it, I have a problem. Inside the .app file, in the Plugins folder, I have a sqldrivers folder with all SQL plugins, including my mySQL. Despite this, the application has problems with activating the plugin. After running the unix application itself, I get the following errors:
      QSqlDatabase: QMYSQL driver not loaded
      QSqlDatabase: available drivers: QSQLITE QMARIADB QMYSQL QODBC QPSQL

      If anyone had a similar problem and managed to solve it, I would be grateful for help.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Piotrek102 Did you also deploy the MySql client library? The plug-in uses it to access the database.
      To debug plug-in issues set QT_DEBUG_PLUGINS env variable before running your app and check the output. See https://doc.qt.io/qt-6/debug.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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 Extensions
      • Unsolved