Results 1 to 3 of 3

Thread: MySql and Qt 4.3 don't work together

  1. #1
    Join Date
    Apr 2008
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default MySql and Qt 4.3 don't work together

    Hello,
    I have recently finished a small Qt application that involves database access. I use QMYSQL for access to mysql database. Everything works fine on linux. Today I ported the application to Windows Xp, I installed MySql server and Qt. I tested the mysql connection from console and it worked fine. The problem is that I cannot connect to database from my application. The QSqlDatabase :: open method returns false. Does anyone have any idea why this is happening?

  2. #2
    Join Date
    Jul 2006
    Location
    Atlanta, GA
    Posts
    86
    Thanks
    26
    Thanked 6 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MySql and Qt 4.3 don't work together

    Did you build the MySQL plugin on Windows? The process is in the wiki.
    fnmblot
    --------------------------------------
    Gee Ricky, I'm sorry your mom blew up.

  3. #3
    Join Date
    Apr 2008
    Posts
    12
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: MySql and Qt 4.3 don't work together

    Hello, thank you very much. I followed the instructions from the link and I installed the MySql plugin and now the application works on windows as well. Thank you again.

Similar Threads

  1. MySQL currency storage problem
    By MarkoSan in forum Qt Programming
    Replies: 2
    Last Post: 15th April 2008, 09:04
  2. mysql configuration with qt
    By bala in forum Installation and Deployment
    Replies: 3
    Last Post: 6th November 2007, 11:02
  3. MySQL starting problem
    By shamik in forum General Discussion
    Replies: 5
    Last Post: 25th April 2007, 07:20
  4. MySql plugin driver issues
    By stevey in forum Installation and Deployment
    Replies: 11
    Last Post: 20th September 2006, 13:45
  5. Qt 4.1.4 & Mysql 5 on Linux x64
    By bothapn in forum Installation and Deployment
    Replies: 7
    Last Post: 4th August 2006, 13:23

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.