Results 1 to 6 of 6

Thread: mysql error

  1. #1
    Join Date
    Nov 2011
    Location
    coimbatore
    Posts
    80
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 5 Times in 5 Posts

    Default mysql error

    hi,
    i have installed mysql on my ubuntu ...after i change my driver in qt( db = QSqlDatabase::addDatabase("MYSQL"))...but i got error ....i don't know wat can i do ..i am using qt creater 2.6.2, ubuntu os...please provide some sollutions

    QSqlDatabase: MYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts

    Default Re: mysql error

    Have you installed the Qt MySQL driver package?

    Cheers,
    _

  3. #3
    Join Date
    Feb 2012
    Location
    Armenia/Yerevan
    Posts
    400
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11
    Thanks
    15
    Thanked 16 Times in 15 Posts

    Default Re: mysql error

    this is not relevant to Ubuntu OS and Qt 2.x.x, install the missing drivers.

  4. #4
    Join Date
    Nov 2011
    Location
    coimbatore
    Posts
    80
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 5 Times in 5 Posts

    Default Re: mysql error

    yes i installed ...i also came same error

  5. #5
    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 error

    Install mysql
    Install libqt4-sql-mysql

  6. #6
    Join Date
    Mar 2011
    Location
    Coimbatore,TamilNadu,India
    Posts
    382
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanks
    10
    Thanked 13 Times in 12 Posts

    Default Re: mysql error

    Use native QMYSQL driver error. First get the database drivers in your system and list those here.

Similar Threads

  1. Error using Mysql embedded
    By qlands in forum Qt Programming
    Replies: 0
    Last Post: 24th November 2011, 13:47
  2. [QT 4.6] Error build driver mysql
    By vinny gracindo in forum Installation and Deployment
    Replies: 1
    Last Post: 26th February 2010, 02:02
  3. MySQL Error
    By P4ulo in forum Qt Programming
    Replies: 5
    Last Post: 11th February 2010, 00:50
  4. Error Loading MySql Driver in 4.3.4
    By perrigo in forum Qt Programming
    Replies: 5
    Last Post: 26th March 2008, 15:38
  5. Error connecting to MySQL
    By probine in forum Qt Programming
    Replies: 20
    Last Post: 24th February 2006, 00:13

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.