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. Connect Qt to MySQL
Qt 6.11 is out! See what's new in the release blog

Connect Qt to MySQL

Scheduled Pinned Locked Moved Unsolved General and Desktop
25 Posts 5 Posters 16.7k Views 1 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.
  • DetordreurD Offline
    DetordreurD Offline
    Detordreur
    wrote on last edited by
    #16

    Yes, I was, so I reinstall Qt 5.6, finally, and I get a (last?) error : The compiler is MSVC 2015, but at the line "nmake", i get a invalid command error
    So I tried to call vcvarsall.bat, but I doesn't not change anything
    (Yes i'm really a beginner)

    1 Reply Last reply
    0
    • jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #17

      In your previous post I see: mingw32-make
      That means you was using MinGW. Did you switch to MSVC2015?
      Did you rerun qmake?

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

      1 Reply Last reply
      0
      • DetordreurD Offline
        DetordreurD Offline
        Detordreur
        wrote on last edited by
        #18

        Yes I have, I desinstalled Qt 5.5, and reinstall Qt 5.6, and now the Qt console is name MSVC 2015, but it don't recognized the line "nmake"...
        Yes I rerun qmake

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

          Open a Visual Studio developer console, that will make thing easier. IIRC it should be in one of the subfolder of the Visual Studio Start menu entry.

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

          1 Reply Last reply
          0
          • DetordreurD Offline
            DetordreurD Offline
            Detordreur
            wrote on last edited by
            #20

            I did it : qmake become invalid command, how do I set environnement to avoid it ?

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

              Either use the full path to qmake or go to the Qt folder and IIRC there's a qtvars.bat file to setup the paths needed.

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

              1 Reply Last reply
              0
              • DetordreurD Offline
                DetordreurD Offline
                Detordreur
                wrote on last edited by
                #22

                Ok perfect, I finally made it, but I don't understand where I have to put the dll to run a project with MySQL ?

                cfdevC 1 Reply Last reply
                0
                • DetordreurD Detordreur

                  Ok perfect, I finally made it, but I don't understand where I have to put the dll to run a project with MySQL ?

                  cfdevC Offline
                  cfdevC Offline
                  cfdev
                  wrote on last edited by
                  #23

                  @Detordreur like all sql plugin -> /sqldrivers

                  1 Reply Last reply
                  0
                  • DetordreurD Offline
                    DetordreurD Offline
                    Detordreur
                    wrote on last edited by
                    #24

                    This is what i've done, in the folder of the executable, but when I try to compile this gives me :
                    (10061) QMYSQL : Unable to connect

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

                      Isn't it rather when you run your application ?

                      If it can't connect, did you check your network settings ? Is your database running ?

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

                      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