Results 1 to 3 of 3

Thread: demos/sqlbrowser is not loading the MySQL plugin

  1. #1
    Join Date
    Sep 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default demos/sqlbrowser is not loading the MySQL plugin

    Hi,

    I wanted to make use of the demos/sqlbrowser: link. I noticed that by default the sqlbrowser only had the sqlite and postgre plugin installed, and I wanted a mysql plugin.

    So I followed the instructions here, since I use Fedora 11. I started the sqlbrowser again and noticed it only picked up the sqlite and postgre plugins. Why didn't it pick up the mysql plugin?

    So I decided to recompile everything using configure (./configure -v -debug-and-release -qt-sql-mysql), then gmake and gmake install. After compiling for many hours, I finally got to try the sqlbrowser under /usr/local/Trolltech/Qt-4.7.0. Unfortunately, sqlbrowser only picked up the sqlite and postgre plugins.

    What am I doing wrong? Any help would be greatly appreciated. Thanks!

  2. #2
    Join Date
    Sep 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: demos/sqlbrowser is not loading the MySQL plugin

    For some reason I cannot load the MySQL driver. demo/sqlbrowser only list the following:

    Qt Code:
    1. QSqlDatabase: QMYSQL driver not loaded
    2. QSqlDatabase: available drivers: QSQLITE QPSQL7 QPSQL
    To copy to clipboard, switch view to plain text mode 

    why is that? I created libqsqlmysql.so under plugins/sqldrivers. What am I missing?

  3. #3
    Join Date
    Sep 2010
    Posts
    6
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: demos/sqlbrowser is not loading the MySQL plugin

    ahh...I figured it out. I just took my chances and re-compiled once again, but with different flags.

    Qt Code:
    1. sudo ./configure -v -debug-and-release -qt-sql-mysql -plugin-sql-mysql -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -L-pthread -lgstreamer-0.10 -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lxml2 -lglib-2.0
    2. sudo gmake
    3. sudo gmake install
    To copy to clipboard, switch view to plain text mode 

    and now I got the demo/sqlbrowser connected to the mysql db.

Similar Threads

  1. Error .../demos/demos.pro missing
    By piyush.neo in forum Newbie
    Replies: 4
    Last Post: 11th June 2010, 16:23
  2. Loading SQLite plugin. Again!
    By miwarre in forum Newbie
    Replies: 5
    Last Post: 12th November 2009, 10:23
  3. Mysql plug in loading problem
    By addu in forum Qt Programming
    Replies: 0
    Last Post: 29th September 2009, 11:14
  4. Error Loading MySql Driver in 4.3.4
    By perrigo in forum Qt Programming
    Replies: 5
    Last Post: 26th March 2008, 14:38
  5. plugin loading problem
    By naresh in forum Qt Programming
    Replies: 6
    Last Post: 9th June 2007, 19:05

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.