Results 1 to 2 of 2

Thread: Database connection problem on Windows and Ubuntu

  1. #1
    Join Date
    Jan 2013
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Database connection problem on Windows and Ubuntu

    Hello,

    I'm new to Qt. I've created small application to editing data from database. I was using Qt Creator on Ubuntu. Today i want to open this application on Windows 7, so I installed Qt, compiled it and everything seems to be working. But... on windows my application can't connect to database. Any idea why? I thought if my app works on Ubuntu, it should work on windows too.

    Any help will be appreciated

    Edit:
    Ubuntu Qt version : 4.8.1
    Win Qt version: 4.7.4
    Last edited by Moskacz; 24th January 2013 at 18:45.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Database connection problem on Windows and Ubuntu

    Random guess... you have not built and/or deployed the SQL driver plugin for the database system you are attempting to access, or the corresponding RDBMS libraries are not present. On Windows only the Sqlite plugin is present by default.

Similar Threads

  1. Connection With database
    By sudheer168 in forum Qt Programming
    Replies: 4
    Last Post: 22nd December 2010, 09:18
  2. Problem Wtih Connecting MySQL Database on Windows
    By dummystories in forum Installation and Deployment
    Replies: 25
    Last Post: 29th April 2009, 11:12
  3. Replies: 5
    Last Post: 6th March 2009, 09:58
  4. Database connection problem
    By MarkoSan in forum Qt Programming
    Replies: 1
    Last Post: 11th September 2008, 20:18
  5. database connection
    By peace_comp in forum Qt Programming
    Replies: 4
    Last Post: 13th May 2008, 12:16

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.