Linux Mint 20 Qt 5.15.0 MySQL driver not loaded
-
I have been through just about everything there is on this forum and others and I am still stuck.
I have the MySQL client libraries loaded.
I have several questions still unanswered.
- Why is this driver not included in the online installer scripts? Postgresql and SQLite are included but not MySQL (the more often seen product).
- Almost all the questions on forums are about Windows...which should not be a problem if I had windows - anywhere.
- Does MySQL server have to be installed on the client machine? It seems when I installed the client libraries, the install scripts tried to start the server. The host database is not local. The only access is on the WAN.
- So what do I do now? The procedures I have seen so far, make use of any other system (even another Linux system) very complicated for users.
I don't have the libqsqlmysql module so ldd is out of the question. The source for Qt 5.15.0 does not seem to have a source for this driver, so the configure script talked about in one post would not work either.
The host computer must connect to the application and the database host is MySQL. I am stopped at this point so any help would be appreciated.
Environment is:
Linux Mint 20 Cinnamon Kernel 4.40-40-generic
Qt 5.15.0
Host server MySQL 8 Client MySQL 8 -
Hi,
-
this question has already been answered on this forum several times. Oracle changed their licensing so the driver can't be provided pre-built anymore.
-
the instructions doesn't change much in this case as you can see in the driver's documentation.
-
no, the client machine only requires the client library.
-
Follow the instructions from the documentation.
If the sources do not contain the driver code, then it means that your copy is incomplete. You should download them again.
-
-
Don't forget to take into account that at this time and age, it's not recommended to have your database directly exposed over internet.