Results 1 to 3 of 3

Thread: How to use both mysql embedded and server plugin in one application?

  1. #1
    Join Date
    Mar 2010
    Location
    Heredia, Costa Rica
    Posts
    257
    Thanks
    24
    Thanked 17 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question How to use both mysql embedded and server plugin in one application?

    Hi,

    I am working in a application where I need to use both server and embedded mysql plugins. The problem is that in the QT reference it only shows how to use the plugin with embedded or server but I cannot figure it out how to use both at the same time.

    Any idea? or example to follow?

    Many thanks,
    Carlos.

  2. #2
    Join Date
    May 2010
    Posts
    24
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to use both mysql embedded and server plugin in one application?

    You probably need to compile 2 separate plugins each linked with a different mysql dll.

    Try to copy the directory $QTDIR/src/plugins/sqldrivers/mysql and rename any reference to the driver name ("QMYSQL") and to the plugin name (qsqlmysql) to something else.

  3. #3
    Join Date
    Mar 2010
    Location
    Heredia, Costa Rica
    Posts
    257
    Thanks
    24
    Thanked 17 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: How to use both mysql embedded and server plugin in one application?

    ok.

    I managed to create a new plugin linked with the embedded library libmysqld.so

    Now, how I need to setup the connection? In other languages like Delphi I need to ser BaseDir and DataDir. How can I set this parameter with Qt?

    Thanks,

Similar Threads

  1. Problems generating Mysql Server 4.1 Plugin
    By grantbj74 in forum Installation and Deployment
    Replies: 1
    Last Post: 1st September 2009, 08:19
  2. How to get list of all databases on the MySQL server
    By jambrek in forum Qt Programming
    Replies: 4
    Last Post: 16th June 2009, 00:48
  3. Replies: 3
    Last Post: 11th September 2008, 21:10
  4. escape input for mysql server
    By tpf80 in forum Qt Programming
    Replies: 8
    Last Post: 18th June 2007, 23:58
  5. Acces to a remote mysql server
    By Alienxs in forum Qt Programming
    Replies: 2
    Last Post: 19th August 2006, 04:10

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.