Results 1 to 5 of 5

Thread: MySQL driver issue

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2011
    Location
    Porto Alegre, Brazil
    Posts
    482
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    165
    Thanked 2 Times in 2 Posts

    Default MySQL driver issue

    Hello!

    I need to use MySQL in my application and learning about how to use QSqlDatabase I discovered I don't have the QMYSQL needed to run my application. I did a search in my folders and detected that I have qsql_mysql.h, qsql_mysql.cpp, qsql_mysql.pri and QMYSQLDriver. But the problem is that I don't know how to proceed.

    Reading in lots of posts throughout the web and here I noticed it was necessary to install MySQL, do I did it. I also found the mysql.h inside it that once appeared as needed. But I simply don't know what to do, not forgetting that despite there are some helps in this forum about exactly the same problem, none of them was clear enough about how to do.

    So, could somebody please give a step-by-step guide about this? I'm using the newest Qt on Windows.

    Thanks,

    Momergil

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: MySQL driver issue

    It is the documentation and probably every single post on the topic of missing database plugins. If you are using the Qt SDK then you should fetch the sources that match your libraries first. In case it is not obvious, where the instructions say %QTDIR%/src/... they mean the source code directory structure.

Similar Threads

  1. MySQL driver on Mac OS X
    By Vit_H in forum Qt Programming
    Replies: 4
    Last Post: 21st March 2011, 22:26
  2. source code for odbc driver or MySql driver in arm-embedded-linux
    By sattu in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 24th January 2011, 11:11
  3. I need MySQL driver for Qt 4.6, WindowsXP(32), MySQL 5.1
    By User_3 in forum Installation and Deployment
    Replies: 7
    Last Post: 15th October 2010, 16:19
  4. MySql driver problem
    By stilgar in forum Qt Programming
    Replies: 1
    Last Post: 13th April 2010, 11:26
  5. [qt 4.6] mysql driver
    By vinny gracindo in forum Newbie
    Replies: 0
    Last Post: 25th February 2010, 23:28

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.