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. MYSQL for Qt on MAC
Forum Updated to NodeBB v4.3 + New Features

MYSQL for Qt on MAC

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 258 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.
  • D Offline
    D Offline
    devstudent
    wrote on last edited by
    #1

    Hi everyone,

    Literally spent the last 5 hours trying to sort this out to no prevail...I almost feel defeated lol.

    So, when I ran my application and I got this error message:
    Screenshot 2021-01-31 at 21.51.27.png

    I checked in my QT SQLdriver folder and it did not include a MySQL file Screenshot 2021-01-31 at 21.57.15.png

    I then downloaded the Mysql installer and installed it on to my mac, as shown:
    Screenshot 2021-01-31 at 21.52.43.png

    I then ran this command in the terminal inside the SQL driver directory
    Screenshot 2021-01-31 at 21.59.28.png

    and get this:
    Screenshot 2021-01-31 at 22.00.21.png

    Any ideas on what I'm doing wrong?

    Many thanks!

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

      Hi and welcome to devnet,

      You have to do that with the sources of Qt, not within your installation.

      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
      • D Offline
        D Offline
        devstudent
        wrote on last edited by
        #3

        Hi @SGaist ,

        I ran the: 'qmake -- MYSQL_PREFIX=/usr/local/mysql' command in the directory of my QT, where there are only three sqlite files.

        /Users/abdi/qt/5.15.2/clang_64/plugins/sqldrivers

        jsulmJ 1 Reply Last reply
        0
        • D devstudent

          Hi @SGaist ,

          I ran the: 'qmake -- MYSQL_PREFIX=/usr/local/mysql' command in the directory of my QT, where there are only three sqlite files.

          /Users/abdi/qt/5.15.2/clang_64/plugins/sqldrivers

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @devstudent As @SGaist already said: you need Qt source code to build the driver.

          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