Results 1 to 6 of 6

Thread: how to access MYSQLdatabase

  1. #1
    Join Date
    Mar 2011
    Location
    delhi
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Exclamation how to access MYSQLdatabase

    hi all i have install MySql database . plsease tell me how to access MYSQL database from Qt Application.
    please tell all the steps involved in this process.


    thanks with regards;
    gauravg

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to access MYSQLdatabase

    QtSql. What else do you need?

  3. #3
    Join Date
    Mar 2011
    Location
    delhi
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to access MYSQLdatabase

    when i run the program error:QMYSQL driver not loaded
    available driver are QSQLITE,QODBC,QODBC
    please tell me how can i make connection with MYSQL database on windows platform.

    thanks with regards;
    gauravg

  4. #4
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to access MYSQLdatabase

    Fist you have to build the MySQL driver. See http://developer.qt.nokia.com/doc/qt...ql-driver.html.

  5. #5
    Join Date
    Mar 2011
    Location
    delhi
    Posts
    45
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to access MYSQLdatabase

    I am not getting the right way how to connect Mysql database.
    please all the steps how to connect Mysql database.


    ragards:
    gauravg

  6. #6
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: how to access MYSQLdatabase

    You can't connect to a database unless you have driver, which you obviously do not have. So first build the driver. See link above.

Similar Threads

  1. How to access the UI from another class ?
    By fitzy in forum Qt Programming
    Replies: 22
    Last Post: 20th July 2016, 14:21
  2. Access USB from Qt???
    By webquinty in forum Qt Programming
    Replies: 5
    Last Post: 6th June 2011, 08:40
  3. Can't access dll
    By waynew in forum Newbie
    Replies: 4
    Last Post: 15th November 2010, 13:06
  4. web access
    By ashwinibm in forum Newbie
    Replies: 1
    Last Post: 15th January 2010, 10:27
  5. Database access from Qt
    By nimmyj in forum Qt Programming
    Replies: 1
    Last Post: 23rd November 2006, 06:51

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.