Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct


    Qt World Summit: Early-Bird Tickets

    Unsolved QSqlDatabase error

    General and Desktop
    3
    12
    1675
    Loading More Posts
    • 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.
    • Swati
      Swati last edited by

      Hello.

      I'm trying to run digiKam using MySQL DB. But it provides me the following error:

      QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3
      QSqlDatabase:  driver not loaded
      

      Could anyone please help to fix this?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • sierdzio
        sierdzio Moderators last edited by

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

        (Z(:^

        Swati 1 Reply Last reply Reply Quote 1
        • SGaist
          SGaist Lifetime Qt Champion last edited by

          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

          Swati 1 Reply Last reply Reply Quote 0
          • Swati
            Swati @SGaist last edited by

            @SGaist I use Kubuntu 15.10

            1 Reply Last reply Reply Quote 0
            • Swati
              Swati @sierdzio last edited by

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

              Anything else I need to install?

              1 Reply Last reply Reply Quote 0
              • SGaist
                SGaist Lifetime Qt Champion last edited by

                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

                Swati 1 Reply Last reply Reply Quote 0
                • Swati
                  Swati @SGaist last edited by

                  @SGaist Yes, I built digiKam myself.

                  1 Reply Last reply Reply Quote 0
                  • SGaist
                    SGaist Lifetime Qt Champion last edited by

                    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

                    Swati 1 Reply Last reply Reply Quote 0
                    • Swati
                      Swati @SGaist last edited by

                      @SGaist Qt 5.6.0

                      1 Reply Last reply Reply Quote 0
                      • SGaist
                        SGaist Lifetime Qt Champion last edited by

                        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

                        Swati 1 Reply Last reply Reply Quote 0
                        • Swati
                          Swati @SGaist last edited by

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

                          Thanks

                          sierdzio 1 Reply Last reply Reply Quote 0
                          • sierdzio
                            sierdzio Moderators @Swati last edited by

                            @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 Reply Quote 0
                            • First post
                              Last post