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. Mysql not defined when compiling mysql driver
Forum Updated to NodeBB v4.3 + New Features

Mysql not defined when compiling mysql driver

Scheduled Pinned Locked Moved Solved Installation and Deployment
39 Posts 3 Posters 5.1k Views 2 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.
  • T Thombou
    20 Apr 2020, 14:11

    @kshegunov What do you call the client library? The libmysql.dll?

    K Offline
    K Offline
    kshegunov
    Moderators
    wrote on 20 Apr 2020, 14:12 last edited by
    #29

    @Thombou said in Mysql not defined when compiling mysql driver:

    What do you call the client library? The libmysql.dll?

    Yes!

    Read and abide by the Qt Code of Conduct

    T 1 Reply Last reply 20 Apr 2020, 14:22
    0
    • K kshegunov
      20 Apr 2020, 14:12

      @Thombou said in Mysql not defined when compiling mysql driver:

      What do you call the client library? The libmysql.dll?

      Yes!

      T Offline
      T Offline
      Thombou
      wrote on 20 Apr 2020, 14:22 last edited by Thombou
      #30

      @kshegunov I downloaded it from here https://dev.mysql.com/downloads/windows/installer/8.0.html.
      As it is installed in the Program Files and not the Program Files (x86) directory I'd say it's 64bits...
      Plus, this is what I installed so:
      4dec0bb9-2b74-4299-b658-851e8881cc69-image.png

      M 1 Reply Last reply 20 Apr 2020, 14:31
      0
      • T Thombou
        20 Apr 2020, 14:22

        @kshegunov I downloaded it from here https://dev.mysql.com/downloads/windows/installer/8.0.html.
        As it is installed in the Program Files and not the Program Files (x86) directory I'd say it's 64bits...
        Plus, this is what I installed so:
        4dec0bb9-2b74-4299-b658-851e8881cc69-image.png

        M Offline
        M Offline
        MEMekaniske
        wrote on 20 Apr 2020, 14:31 last edited by
        #31

        @Thombou It says X64 under the architecture tab so should be the correct version.

        1 Reply Last reply
        1
        • M Offline
          M Offline
          MEMekaniske
          wrote on 20 Apr 2020, 14:35 last edited by
          #32

          Also, if you go into the "Add" tab, then expand MySQL Servers, then expand MySQL Server, then choose MySQL Server 8.0 you get the option to choose the availiable architectures :)

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Thombou
            wrote on 20 Apr 2020, 15:41 last edited by
            #33

            Yes that's what I di not understand. it seems that I have the correct version but a wrong version of the libmysql.dll... Anyway, i hope that it is fixed now, and that I won't have other surprises like that later on.
            Thank you very much for your help! It is much appreciated!

            M 1 Reply Last reply 20 Apr 2020, 16:03
            1
            • T Thombou
              20 Apr 2020, 15:41

              Yes that's what I di not understand. it seems that I have the correct version but a wrong version of the libmysql.dll... Anyway, i hope that it is fixed now, and that I won't have other surprises like that later on.
              Thank you very much for your help! It is much appreciated!

              M Offline
              M Offline
              MEMekaniske
              wrote on 20 Apr 2020, 16:03 last edited by
              #34

              @Thombou Yeah it is very frustrating.. hope all goes well with the next version!
              Glad i could help :)

              1 Reply Last reply
              1
              • T Offline
                T Offline
                Thombou
                wrote on 21 Apr 2020, 08:55 last edited by
                #35

                Shall I report a bug somewhere of shall I suppose the problem is on my side?

                K 1 Reply Last reply 21 Apr 2020, 09:33
                1
                • T Thombou
                  21 Apr 2020, 08:55

                  Shall I report a bug somewhere of shall I suppose the problem is on my side?

                  K Offline
                  K Offline
                  kshegunov
                  Moderators
                  wrote on 21 Apr 2020, 09:33 last edited by
                  #36

                  @Thombou said in Mysql not defined when compiling mysql driver:

                  Shall I report a bug somewhere of shall I suppose the problem is on my side?

                  The latter. (And don't feel bad, it happens all the time, that's why this user forum exists)

                  Read and abide by the Qt Code of Conduct

                  T 1 Reply Last reply 21 Apr 2020, 13:50
                  1
                  • K kshegunov
                    21 Apr 2020, 09:33

                    @Thombou said in Mysql not defined when compiling mysql driver:

                    Shall I report a bug somewhere of shall I suppose the problem is on my side?

                    The latter. (And don't feel bad, it happens all the time, that's why this user forum exists)

                    T Offline
                    T Offline
                    Thombou
                    wrote on 21 Apr 2020, 13:50 last edited by
                    #37

                    @kshegunov Ok that's what I thought too :) haha. It's by doing that we learn!
                    Cheers :)

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      Thombou
                      wrote on 22 Apr 2020, 08:52 last edited by Thombou
                      #38

                      For those who are interested, I opened the 2 dlls with the dependancy walker. It turns out that the dll provided by mysqlserver required 2 additional dlls LIBSSL-1_1X64.DLL and LIBCRYPTO-1_1-x64.DLL which were not found. In the dll file that if working, those 2 additional dlls are not required. When placing those 2 DLLs in the folder of the executable everything works perfectly. This is the root cause of the problem.

                      M 1 Reply Last reply 22 Apr 2020, 08:59
                      1
                      • T Thombou
                        22 Apr 2020, 08:52

                        For those who are interested, I opened the 2 dlls with the dependancy walker. It turns out that the dll provided by mysqlserver required 2 additional dlls LIBSSL-1_1X64.DLL and LIBCRYPTO-1_1-x64.DLL which were not found. In the dll file that if working, those 2 additional dlls are not required. When placing those 2 DLLs in the folder of the executable everything works perfectly. This is the root cause of the problem.

                        M Offline
                        M Offline
                        MEMekaniske
                        wrote on 22 Apr 2020, 08:59 last edited by
                        #39

                        @Thombou very helpful information indeed! :)

                        What if you download those dlls to your exe lib and (there you did it already in the edit I see :p) hehe..

                        Very good, then you have complied the library successfully! Congratz :)

                        1 Reply Last reply
                        0

                        38/39

                        22 Apr 2020, 08:52

                        • Login

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