MYSQL for Qt on MAC
-
wrote on 31 Jan 2021, 22:01 last edited by
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:
I checked in my QT SQLdriver folder and it did not include a MySQL file
I then downloaded the Mysql installer and installed it on to my mac, as shown:
I then ran this command in the terminal inside the SQL driver directory
Any ideas on what I'm doing wrong?
Many thanks!
-
Hi and welcome to devnet,
You have to do that with the sources of Qt, not within your installation.
-
wrote on 31 Jan 2021, 22:44 last edited by
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
-
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
@devstudent As @SGaist already said: you need Qt source code to build the driver.
1/4