Results 1 to 2 of 2

Thread: QT 4.5 QMYSQL and Mysql 4.1 servers does not work

  1. #1
    Join Date
    May 2009
    Posts
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question QT 4.5 QMYSQL and Mysql 4.1 servers does not work

    Hi,

    i'd try to connect with QMYSQL to various mysql databases. When mysql is a server 5.x all work fine.

    When I try to connect to mysql 4.1.x following happens:

    1. connection establish, login succed
    2. trying getting database list with "show databases" - no result. When doing the same from console with mysql5 client (of course same user and password) I get a list of databases.
    3. same when I try to get list of tables for a database.

    As said: with connection to mysql 5 works fine. On connection to mysql 4 the query is marked as to be not a select. same when I try to get variables with "show variables".

    Looks like the "show" statement has some problems with QMYSQL and mysql 4.1.x server? Any hints how to solve it? May be connection parameters?

    (as said before: with console app from mysql it works perfekt as expected)

    bye

  2. #2
    Join Date
    Mar 2009
    Posts
    19
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QT 4.5 QMYSQL and Mysql 4.1 servers does not work

    Hi -

    I don't know if you've solved your problem or not but it appears that the MySQL driver was reworked for Qt 4.5 and may be broken. I've fallen back to 4.4.3 as a workaround to my current problem.

    ( http://www.qtcentre.org/forum/f-qt-p...tml#post110382 )

    Good luck,
    Bill

Similar Threads

  1. MySql and Qt 4.3 don't work together
    By john_crichton in forum Newbie
    Replies: 2
    Last Post: 9th May 2008, 11:57
  2. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45
  3. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50

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.