Results 1 to 2 of 2

Thread: problem using mysql plugin (version 2)

  1. #1
    Join Date
    Jun 2007
    Posts
    18
    Thanks
    2

    Default problem using mysql plugin (version 2)

    hello:

    I am starting this as a separate thread on the same topic because this thread is in a different context. Earlier than this, I had posted my problem of using mysql plugins. I followed the relevant directions I got in response to my questions (place plugins directory relatively below the executable etc)...but to avail no success. I had posted this problem on another forum and had received the reply as to use the following code:

    QSqlDatabase::registerSqlDriver("MYDRIVER",
    new SqlDriverCreator<MyDatabaseDriver>);
    QSqlDatabase db = QSqlDatabase::addDatabase("MYDRIVER");

    with reference to the QT Documentation link:
    http://doc.qt.nokia.com/latest/qsqld...isterSqlDriver

    I however did not receive any response concerning the question of what should I supply in place of "MYDRIVER" and <MyDatabaseDriver> arguments?
    I am running windows 7, visual studio 8 and MySQL.

    Would appreciate help as I think a lot many people having similar problems ( as I see after searching this website) would also benefit from this discussion.

  2. #2
    Join Date
    Mar 2011
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows Symbian S60

    Default Re: problem using mysql plugin (version 2)

    You can use databases much easier. For example, QsqLite database doesn't need any driver at all.

Similar Threads

  1. Problem with compiling MySQL Plugin (Win7 x64)
    By GwynBleidD in forum Installation and Deployment
    Replies: 3
    Last Post: 24th April 2011, 11:13
  2. problem using mysql plugin
    By arjoshi in forum Installation and Deployment
    Replies: 3
    Last Post: 2nd April 2011, 19:57
  3. How to compile a mysql plugin in the QT 4.7 version?
    By wter27 in forum Qt Programming
    Replies: 0
    Last Post: 29th January 2011, 04:26
  4. Mysql plugin on Linux problem
    By .:saeed:. in forum Newbie
    Replies: 1
    Last Post: 20th January 2011, 17:03
  5. problem with plugin mysql
    By jose.va18 in forum Installation and Deployment
    Replies: 2
    Last Post: 19th September 2007, 12:12

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.