Results 1 to 3 of 3

Thread: SQL connection problem

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #3
    Join Date
    Oct 2006
    Posts
    42
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1
    Thanked 8 Times in 8 Posts

    Default Re: SQL connection problem

    QSQLITE always works because it doesn't connect to a remote database, but creates a local one on your computer. See http://www.sqlite.org/ for more info on SQLite.

    As Jacek says you need to know what kind of database you're trying to connect to. Is it PostgreSql or MySql or something else? And you need to set the correct port as well, unless the database uses its default port.

    If it's a MySql database as the port number suggests (3306) you need to build the QMYSQL driver and use this.
    Last edited by mm78; 24th May 2007 at 19:20.

Similar Threads

  1. Problem building Firebird sql plugins
    By vieraci in forum Installation and Deployment
    Replies: 11
    Last Post: 12th September 2008, 01:28
  2. Signal-slots connection problem.
    By impeteperry in forum Qt Tools
    Replies: 26
    Last Post: 23rd January 2007, 14:33
  3. SQL problem
    By nimmyj in forum Qt Programming
    Replies: 4
    Last Post: 25th December 2006, 18:43
  4. Connection with MS SQL
    By manish_pesit in forum Qt Programming
    Replies: 4
    Last Post: 13th September 2006, 07:47
  5. connection problem
    By mhoover in forum Qt Programming
    Replies: 1
    Last Post: 7th July 2006, 22:14

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.