Results 1 to 4 of 4

Thread: Qt with mysql connection ???

  1. #1
    Join Date
    Jul 2012
    Posts
    40
    Qt products
    Qt4 Qt/Embedded

    Default Qt with mysql connection ???

    HI all,

    While i was going through qt docs about mysql binding with QT, i came accross below lines of code(http://doc.qt.digia.com/4.7-snapshot/sql-driver.html)
    cd $QTDIR/src/plugins/sqldrivers/mysql
    qmake "INCLUDEPATH+=/usr/local/include" "LIBS+=-L/usr/local/lib -lmysqlclient_r" mysql.pro
    make
    but in my qt installed directory i cant see mysql related files or folders in ("QTDIR/plugins/sqldrivers"),plz help me out frnds..........

    Note:
    1)Using fedora 14 os
    2)installed qt using cmd prompt ,i.e (yum install qt)....installed at dis path usr/lib/qt4

    Regards
    sai

  2. #2
    Join Date
    Nov 2009
    Posts
    10
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt with mysql connection ???

    Have you executed the second part of the instructions?

    cd $QTDIR/src/plugins/sqldrivers/mysql
    make install

  3. #3
    Join Date
    Jul 2012
    Posts
    40
    Qt products
    Qt4 Qt/Embedded

    Default Re: Qt with mysql connection ???

    thanks for reply Cyrano .........actually there is no file or folder of mysql in SQLDRIVERS folder ( cd $QTDIR/src/plugins/sqldrivers/)

  4. #4
    Join Date
    Feb 2008
    Posts
    491
    Thanks
    12
    Thanked 142 Times in 135 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Re: Qt with mysql connection ???

    Those instructions are for compiling the mysql plugin from source.

    Try using your package manager to search for libqsqlmysql.so. FWIW the Debian package is named libqt4-sql-mysql.

Similar Threads

  1. Connection to MySQL
    By giriuvce in forum Qt Programming
    Replies: 12
    Last Post: 23rd January 2012, 02:59
  2. Regarding MYSQL connection
    By sudheer168 in forum Qt Programming
    Replies: 3
    Last Post: 16th October 2009, 15:34
  3. mysql 5 connection
    By GuL in forum Newbie
    Replies: 37
    Last Post: 18th August 2008, 15:11
  4. Mysql connection
    By yesraaj in forum Newbie
    Replies: 2
    Last Post: 23rd February 2007, 05:57
  5. Connection with MySql
    By vishva in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2006, 11:58

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