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. Building QT with "windeployqt": not connect to database (ODBC)

Building QT with "windeployqt": not connect to database (ODBC)

Scheduled Pinned Locked Moved Solved Installation and Deployment
databaseodbcwindeployqtbuild
24 Posts 4 Posters 4.4k 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.
  • A Offline
    A Offline
    AndreaCT
    wrote on 5 May 2020, 20:00 last edited by
    #13

    53b13833-e676-4a7d-ba28-64abf8e93832-image.png

    Download and put inside all the missing dll?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      AndreaCT
      wrote on 5 May 2020, 20:18 last edited by
      #14

      Unfortunately the problem persists

      1 Reply Last reply
      0
      • H Online
        H Online
        hskoglund
        wrote on 5 May 2020, 20:45 last edited by
        #15

        Hi, just guessing, are you using 127.0.0.1 (or localhost) to connect to the database also on the new PC? Also, have you checked that you can reach the database with MySQL workbench?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          AndreaCT
          wrote on 5 May 2020, 21:07 last edited by
          #16

          Yes to both

          1 Reply Last reply
          0
          • H Online
            H Online
            hskoglund
            wrote on 5 May 2020, 23:54 last edited by
            #17

            Ok. Is it same version of Windows 10 on both computers?

            A 1 Reply Last reply 6 May 2020, 09:04
            0
            • J Offline
              J Offline
              JSher
              wrote on 6 May 2020, 01:08 last edited by
              #18

              Is the ODCB connection created on 2nd computer? Also with mysql connector you need Visual C++2015 distro.

              --James

              1 Reply Last reply
              0
              • H hskoglund
                5 May 2020, 23:54

                Ok. Is it same version of Windows 10 on both computers?

                A Offline
                A Offline
                AndreaCT
                wrote on 6 May 2020, 09:04 last edited by
                #19

                @hskoglund Yes

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  AndreaCT
                  wrote on 6 May 2020, 09:15 last edited by
                  #20

                  @JSher No, I just tried to print the error on a label with db.lastError() and the output is: "[Microsoft][Driver Manager ODBC] Nome origine dati non trovato e driver predefinito non specificato. QODBC3: Unable to connect"

                  1 Reply Last reply
                  0
                  • J Offline
                    J Offline
                    JSher
                    wrote on 6 May 2020, 10:03 last edited by
                    #21

                    Sorry what I meant was did you configure the ODBC data source on the 2nd computer.

                    Like this:

                    https://stackoverflow.com/questions/25165525/how-to-connect-to-a-mysql-database-through-odbc-from-qt-application

                    --James

                    1 Reply Last reply
                    0
                    • A Offline
                      A Offline
                      AndreaCT
                      wrote on 6 May 2020, 11:49 last edited by
                      #22

                      No, this procedure is necessary for each device that must use the application?

                      1 Reply Last reply
                      0
                      • J Offline
                        J Offline
                        JSher
                        wrote on 6 May 2020, 14:47 last edited by
                        #23

                        Its connecting to an OBDC entry in windows by the looks of it. I do not use ODBC much but the way I understand it is you have to make the entry on each machine....Thats why I use the standard mysql connector, then you do not. I could be off:)

                        --James

                        1 Reply Last reply
                        0
                        • A Offline
                          A Offline
                          AndreaCT
                          wrote on 6 May 2020, 15:09 last edited by
                          #24

                          @JSher said in Building QT with "windeployqt": not connect to database (ODBC):

                          Its connecting to an OBDC entry in windows by the looks of it. I do not use ODBC much but the way I understand it is you have to make the entry on each machine....Thats why I use the standard mysql connector, then you do not. I could be off:)

                          Ok thank you very much!!! I evaluate the transition to the mysql connector

                          1 Reply Last reply
                          0

                          22/24

                          6 May 2020, 11:49

                          • Login

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