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. QSqlDatabase error
Forum Updated to NodeBB v4.3 + New Features

QSqlDatabase error

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 3 Posters 2.2k Views 3 Watching
  • 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.
  • sierdzioS Offline
    sierdzioS Offline
    sierdzio
    Moderators
    wrote on last edited by
    #2

    Most probably you have not compiled the MySQL Qt driver. Please see this splendid guide by mattewre: link

    (Z(:^

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

      Hi and welcome to devnet,

      On what OS are you running digiKam ?

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

      SwatiS 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        On what OS are you running digiKam ?

        SwatiS Offline
        SwatiS Offline
        Swati
        wrote on last edited by
        #4

        @SGaist I use Kubuntu 15.10

        1 Reply Last reply
        0
        • sierdzioS sierdzio

          Most probably you have not compiled the MySQL Qt driver. Please see this splendid guide by mattewre: link

          SwatiS Offline
          SwatiS Offline
          Swati
          wrote on last edited by
          #5

          @sierdzio I've installed libqt5sql5-mysql is installed on my system.

          Anything else I need to install?

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

            Did you build digiKam yourself ?

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

            SwatiS 1 Reply Last reply
            0
            • SGaistS SGaist

              Did you build digiKam yourself ?

              SwatiS Offline
              SwatiS Offline
              Swati
              wrote on last edited by
              #7

              @SGaist Yes, I built digiKam myself.

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

                With which version of Qt ?

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

                SwatiS 1 Reply Last reply
                0
                • SGaistS SGaist

                  With which version of Qt ?

                  SwatiS Offline
                  SwatiS Offline
                  Swati
                  wrote on last edited by
                  #9

                  @SGaist Qt 5.6.0

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

                    Okay, so what you are likely experimenting is that you have a version of MySQL different than the one used to build the plugin. Currently you likely have the version 18 of the client library and the module was built with 16.

                    Now you have two options:

                    1. Rebuild the plugin for your 5.6
                    2. Use your distribution Qt 5 to build digiKam

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

                    SwatiS 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Okay, so what you are likely experimenting is that you have a version of MySQL different than the one used to build the plugin. Currently you likely have the version 18 of the client library and the module was built with 16.

                      Now you have two options:

                      1. Rebuild the plugin for your 5.6
                      2. Use your distribution Qt 5 to build digiKam
                      SwatiS Offline
                      SwatiS Offline
                      Swati
                      wrote on last edited by
                      #11

                      @SGaist Could you elaborate a little on how to accomplish these?
                      It would be a help.

                      Thanks

                      sierdzioS 1 Reply Last reply
                      0
                      • SwatiS Swati

                        @SGaist Could you elaborate a little on how to accomplish these?
                        It would be a help.

                        Thanks

                        sierdzioS Offline
                        sierdzioS Offline
                        sierdzio
                        Moderators
                        wrote on last edited by
                        #12

                        @Swati

                        1. See the link I posted in my first reply to you - contains detailed instructions.
                        2. Install dev packages of Qt (in *buntu 15.10 I think they were named qt5-qmake-dev, but might be something else, they keep changing the package names :-/), then compile DigiKam using system Qt (qmake will be in PATH).

                        (Z(:^

                        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