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. How to install MySQL 8.0.19 - winx64 Driver?

How to install MySQL 8.0.19 - winx64 Driver?

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 457 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.
  • L Offline
    L Offline
    LimarDeWills
    wrote on 12 Apr 2020, 06:35 last edited by
    #1

    Hello, please help me!

    • MySQL 8.0.19 - winx64
    • compiler mingw73_64
    • Qt 5.14.1

    Qt mysql.jpg

    1). In cmd - C:\Qt\5.14.1\Src\qtbase\src\plugins\sqldrivers> qmake -- MYSQL_INCDIR="C:\mysql\include" MYSQL_LIBDIR="C:\mysql\lib"
    2). When - mingw32-make.exe
    3). But cmd show me errors -

    g++: error: unrecognized command line option '-std=c++1z'
    g++: error: unrecognized command line option '-Wshift-overflow=2'
    g++: error: unrecognized command line option '-Wduplicated-cond'
    mingw32-make.exe[1]: *** [Makefile:838: .obj/qsql_sqlite.o] Error 1
    mingw32-make.exe[1]: Leaving directory 'C:/Qt/5.14.1/Src/qtbase/src/plugins/sqldrivers/sqlite'
    mingw32-make.exe: *** [Makefile:50: sub-sqlite-make_first] Error 2
    

    What am I doing wrong? Please tell me what must i do.

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on 12 Apr 2020, 06:41 last edited by
      #2

      @LimarDeWills said in How to install MySQL 8.0.19 - winx64 Driver?:

      What am I doing wrong?

      You're using an ancient MinGW compiler - make sure to use the one provided by the Qt installer (see als gcc --version output)

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • L Offline
        L Offline
        LimarDeWills
        wrote on 12 Apr 2020, 09:57 last edited by LimarDeWills 4 Dec 2020, 10:03
        #3

        Christian Ehrlicher, thanks for help
        1). I completely uninstalled Qt.
        2). Reinstalled all components - Maintain Qt.jpg
        3). In cmd the same errors come out - Command Prompt.jpg

        Did I install something wrong?

        p.s.

        C:\Users\User>gcc --version
        gcc (i686-posix-sjlj, built by strawberryperl.com project) 4.9.2
        Copyright (C) 2014 Free Software Foundation, Inc.
        This is free software; see the source for copying conditions.  There is NO
        warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
        
        1 Reply Last reply
        0
        • C Offline
          C Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on 12 Apr 2020, 10:12 last edited by
          #4

          gcc 4.9 is not the correct compiler. You have to set up your Qt environment correctly instead simply opening a cmd.exe

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1
          • L Offline
            L Offline
            LimarDeWills
            wrote on 12 Apr 2020, 10:30 last edited by
            #5

            Please explain what needs to be done in the cmd to set up Qt environment?

            1 Reply Last reply
            0
            • L Offline
              L Offline
              LimarDeWills
              wrote on 13 Apr 2020, 04:24 last edited by
              #6

              I deleted all gcc, after that cmd started showing correct version

              1 Reply Last reply
              0

              6/6

              13 Apr 2020, 04:24

              • Login

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