Results 1 to 2 of 2

Thread: MySQL flugin, very strang problem. Please help me.

  1. #1
    Join Date
    May 2009
    Posts
    28
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows

    Default MySQL flugin, very strang problem. Please help me.

    Hi all.

    I am trying to connect mysql with QT on window xp system.

    I made step:

    1. Installed mysql
    2. Installed QT SDK
    3. I copied mingw-utils-0.3 to %QTDIR%/bin)
    4. I did

    1. Open a Qt Command Prompt and go to : C:\mysql\lib\opt
    2. Run : dlltool -k --input-def libmysql.def --dllname libmysql.dll --output-lib C:\Qt\2009.02\mingw\lib\libmysql.a
    3. reimp libmysql.lib to produce the liblibmysql.a file. It had done.
    4. Go to %QTDIR%/src/plugins/sqldrivers/mysql
    5. Run the following command: qmake -o Makefile "INCLUDEPATH+=C:\mysql\include" "LIBS+=C:\mysql\lib\opt\liblibmysql.a" mysql.pro
    6. Run make - this should build the qsqlmysql.dll and libqsqlmysql.a files in the %QTDIR%/plugins/sqldrivers directory.
    7. Copy the libmysql.dll file from the MySQL installation's bin directory to a directory in %PATH% (e.g. %QTDIR%/bin).
    I made i simple QT connecttion

    QSqlDatabase db = QSqlDatabase::addDatabase("QMYSQL");
    db.setHostName("209.59.209.13");
    db.setDatabaseName("test");
    db.setUserName("tara");
    db.setPassword("d5aquExV");
    it still has a wrong message
    QSqlDatabase: QMYSQL driver not loaded
    QSqlDatabase: available drivers: QSQLITE QODBC3 QODBC
    Please help me. What step i was wrong or what happends to me.
    Thanks in advance.
    Diego
    Last edited by diego; 4th June 2009 at 08:35.

  2. #2
    Join Date
    May 2009
    Posts
    28
    Qt products
    Qt3 Qt4 Qt/Embedded Qt Jambi PyQt3 PyQt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: MySQL flugin, very strang problem. Please help me.

    Thanks for all.
    I made them successfull

Similar Threads

  1. Mysterious Qt4.2.0 Mysql 5.0.41 connection problem
    By locus in forum Qt Programming
    Replies: 5
    Last Post: 4th July 2007, 17:59
  2. [QMYSQL] connection problem
    By chaos_theory in forum Installation and Deployment
    Replies: 5
    Last Post: 2nd July 2007, 09:52
  3. MySQL starting problem
    By shamik in forum General Discussion
    Replies: 5
    Last Post: 25th April 2007, 07:20
  4. MySql Problem
    By vishesh in forum Installation and Deployment
    Replies: 7
    Last Post: 19th April 2007, 21:16
  5. My Mysql 5 and Qt 4.2.2 Problem (Driver not loaded)
    By fengtian.we in forum Qt Programming
    Replies: 4
    Last Post: 9th February 2007, 08:11

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.