How to create sql driver?



  • Hello
    I encountered a problem creating a sql driver. I read a lot of information in several forums, but I can not solve it.
    I use Win7, MySQL Server 5.7, MinGW53_32.
    When creating a driver, the console gives the following message:
    " Cannot read C:/Qt/5.10.1/Src/qtbase/src/plugins/sqldrivers/qtsqldrivers-config.pri: The system cannot find the file specified.
    Project ERROR: Library 'mysql' is not defined. "

    The file "qtsqldrivers-config.pri" does not exist either in the "QT" directory or in the "MySQL Server" directory.

    Maybe someone could help?


  • Qt Champions 2017

    Hi
    Did you install the MySql window 7 client libraries ?
    It seems it cannot find
    Library 'mysql'

    I think its from here
    https://dev.mysql.com/doc/connector-cpp/8.0/en/


Log in to reply
 

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