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



  • Hello everyone.

    If you are reading then it means u`re a linux user who what to connet 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, and many people nerver had interest in helping me. exept for @mrjj and others who have tried.

    so i 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
    

    From there i ran a very special command that i dont know what i does, which is :

    sudo apt-get install libmysqlcppconn-dev
    

    then everything went very well, you dont need to download those Qt sources blah blah..
    so i hope these will help you too.

    Thanks for reading...



  • Congrat :))


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.