Find the answer to your Linux question:
Results 1 to 3 of 3
hello everyone , from the last few years i have been trying to connect mysql with my qt application. i have mysql version 5.0.77 installed in my fedora 10 system. ...
  1. #1
    Just Joined!
    Join Date
    Mar 2009
    Posts
    3

    [SOLVED] Cant load QMYSQL driver for QT application

    hello everyone ,
    from the last few years i have been trying to connect mysql with my qt application.
    i have mysql version 5.0.77 installed in my fedora 10 system.
    when i run my program it shows an error msg

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

    where i can find the QMYSQL driver?

    qt4 has QSQLITE by default. i have to add the QMYSQL driver.
    i downloaded qt4-mysql-4.4.1-2.fc8.i386.rpm and when i want install it, it says
    error: Failed dependencies:

    libcrypto.so.6 is needed by qt4-mysql-4.4.1-2.fc8.i386
    libssl.so.6 is needed by qt4-mysql-4.4.1-2.fc8.i386
    qt4 = 4.4.1-2.fc8 is needed by qt4-mysql-4.4.1-2.fc8.i386


    where do i find this packages???
    how can i fix my problem?

    plsssss help me.
    i cant develop my application unless my driver problem is fixed
    thank you

  2. #2
    Just Joined!
    Join Date
    Apr 2009
    Posts
    90
    Sounds like you are trying to install the qt4-mysql package from a different distribution, or earlier/later version.

    What distro are you running? You need to make sure that the appropriate packages are installed, and up to date.

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    3
    i have fixed my problem.
    it is qt distribution problem.
    i have qt version qt-4.4.3-a5fc10
    and for that purpose i downloaded qt-mysql-4.4.3-15.fc10.i386.rpm
    from
    RPM resource qt-MySQL
    and install it.
    now my mysql is running well with qt applications.

    Thank you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...