[Qt-interest] how to deploy mysql plugin under linux

Nikos Chantziaras realnc at arcor.de
Wed May 5 12:00:52 CEST 2010


On 05/05/2010 12:37 PM, pmqt71 pmqt71 wrote:
> Hi all,
> please help me:
> I'm deploying my app under a Ubuntu 9.04 64 bit server.
> The app starts, but the mysql plugin is not loaded.
> I'm now using a simple main that just prints the available sql drivers,
> but nothing is printed.
> I've copied the plugin (libqsqlmysql.so) in turn under the app folder,
> under ./plugins, under ./plugin/sqldrivers but nothing happens.
> So, what is the correct procedure to deploy a mysql plugin? Note that I
> can not install anything on the system, I just can copy files.

The Ubuntu box needs libqt4-sql-mysql installed.  If you really can't 
anyone to install that for you (meaning someone running "aptitude 
install libqt4-sql-mysql" as root), then you could include the *.so as 
you do now and use QCoreApplication::addLibraryPath() somewhere in your 
main().



More information about the Qt-interest-old mailing list