Making one Qt5 application to connect to both MySQL server and embedded

QT5 usually builds with a MySQL driver that connect to a server. The documentation also provides information on how to achieve an embedded connection however, there is no much information on how to have a Qt application using both the embedded and server connection. The example below show how to achieve it:

MySQL Dual Connection (Embedded / Server) with QT5

Cheers,

QLands

3 thoughts on “Making one Qt5 application to connect to both MySQL server and embedded”

  1. Hi QLand,

    Am Interested in embedding mysql/mariadb with Qt Application.
    The dual connection you uploaded on GitHub was run on UNIX but is it possible to compile it on Windows. Am currently using Qt 5.10.1 and I have constantly failed to get the right .lib files.

    1. Well, finally I was able to compile on windows. But What else should I do to make it work without installing MYSQL or MariaDB? I deally, I thought I will use this code to create a database independently embedded in Qt App.

Leave a Reply

Your email address will not be published. Required fields are marked *

*