User talk:Chawila

How to create the plugin of MYSQL for Qt (linux)
Hello everyone.

If you are reading then it means you are a linux user who what to connect your Qt project to mysql database.

The reason why i did these doc is because i spent my past weeks trying to figure out how these can be archived, i tried many techniques but the only thing i got was: QSqlDatabase: QMYSQL driver not loaded QSqlDatabase: available drivers: QSQLITE QMYSQL QMYSQL3 QPSQL QPSQL7

So these is how i archived it:

1.Installed mysql development packages with these commands:

sudo apt-get install mysql-client

sudo apt-get install libmysqlclient-dev

sudo apt-get install libqt5sql5-mysql

sudo apt-get install libmysql++-dev

2.From there i ran a very these special command:

sudo apt-get install libmysqlcppconn-dev Then everything went very well. so i hope these will help you too.

Thanks for reading...