Results 1 to 2 of 2

Thread: using QMYSQL in Qt 5.0.1 on Linux and Windows

  1. #1
    Join Date
    Jan 2013
    Posts
    23
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default using QMYSQL in Qt 5.0.1 on Linux and Windows

    How can I use MySQL database in Qt 5.0.1 on Linux and Windows?

    When I wrote
    Qt Code:
    1. QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
    To copy to clipboard, switch view to plain text mode 
    Qt Creator said:
    Qt Code:
    1. QSqlDatabase: QMYSQL driver not loaded
    2. QSqlDatabase: available drivers: QSQLITE
    To copy to clipboard, switch view to plain text mode 


    Sorry for my English

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: using QMYSQL in Qt 5.0.1 on Linux and Windows

    You have to build the drivers. See in the documentation at "SQL Database Drivers" for instructions.

Similar Threads

  1. problems building the QMYSQL plugin on Windows 64 using MinGW 64
    By carpanta in forum Installation and Deployment
    Replies: 1
    Last Post: 24th April 2012, 20:13
  2. Qt Windows v.s. Qt Linux
    By ehsu in forum Qt Tools
    Replies: 1
    Last Post: 7th October 2009, 13:37
  3. Deployment Procedure On Windows On Linux and Windows
    By Harshith J.V. in forum Installation and Deployment
    Replies: 4
    Last Post: 9th July 2009, 11:27
  4. can Qt (on linux) use a windows dll?
    By JeanC in forum Qt Programming
    Replies: 2
    Last Post: 16th February 2008, 10:26
  5. how to access usb device uisng qt
    By amit_pansuria in forum General Programming
    Replies: 4
    Last Post: 11th April 2007, 12:11

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.