Page 2 of 2 FirstFirst 12
Results 21 to 29 of 29

Thread: QMYSQL database driver installation files

  1. #21
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    156
    Thanks
    47
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMYSQL database driver installation files

    Have I installed the wrong files?I installed the mysql-5.1.49-win32.msi .

  2. #22
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: QMYSQL database driver installation files

    In your previous post,
    Quote Originally Posted by babygal View Post
    Qt Code:
    1. int main(int argc, char *argv[])
    2. {
    3.  
    4. QApplication app(argc, argv);
    5.  
    6. qDebug() << QSqlDatabase::drivers();
    7. if (!createConnection())
    8. return 1;
    9.  
    10. Q_INIT_RESOURCE(cardiacprocessingtoolkit);
    11. MainWindow mainWin;
    12. mainWin.show();
    13.  
    14.  
    15. return app.exec();
    16. }
    To copy to clipboard, switch view to plain text mode 
    The debug message reads as:
    ("QSQLITE", "QMYSQL3", "QMYSQL", "QODBC3", "QODBC")
    Why do you look for libmysql.lib? You already have mysql plugin.

  3. #23
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    156
    Thanks
    47
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMYSQL database driver installation files

    Quote Originally Posted by saa7_go View Post
    In your previous post,


    Why do you look for libmysql.lib? You already have mysql plugin.



    So what does that mean? I don't need the installation files?

    confused.....
    Last edited by babygal; 11th August 2010 at 08:26.

  4. #24
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: QMYSQL database driver installation files

    Quote Originally Posted by babygal View Post
    So what does that mean? I don't need the installation files?
    confused.....
    You don't need to rebuild QMYSQL plugin again, but you need MySQL server. Just, create(or use) a database, a table, inserting some record. Then, try to connect to mysql server using Qt, and see what happen(success or error).

  5. The following user says thank you to saa7_go for this useful post:

    babygal (12th August 2010)

  6. #25
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    156
    Thanks
    47
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMYSQL database driver installation files

    Quote Originally Posted by saa7_go View Post
    You don't need to rebuild QMYSQL plugin again, but you need MySQL server. Just, create(or use) a database, a table, inserting some record. Then, try to connect to mysql server using Qt, and see what happen(success or error).
    Do I need to do some configuration in my *.pro file to enable the MySql?

  7. #26
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: QMYSQL database driver installation files

    Quote Originally Posted by babygal View Post
    Do I need to do some configuration in my *.pro file to enable the MySql?
    No, but you must add sql module in your .pro.

    Qt Code:
    1. QT += sql
    To copy to clipboard, switch view to plain text mode 

  8. The following user says thank you to saa7_go for this useful post:

    babygal (12th August 2010)

  9. #27
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    156
    Thanks
    47
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMYSQL database driver installation files

    Quote Originally Posted by saa7_go View Post
    No, but you must add sql module in your .pro.

    Qt Code:
    1. QT += sql
    To copy to clipboard, switch view to plain text mode 
    Thank you. I have added this line : QT += sql in my *.pro

    The server is configured on another PC and my PC is supposedly the client. Does it make a difference in my code/project?

  10. #28
    Join Date
    Jun 2010
    Location
    Salatiga, Indonesia
    Posts
    160
    Thanks
    11
    Thanked 32 Times in 29 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    1

    Default Re: QMYSQL database driver installation files

    Quote Originally Posted by babygal View Post
    Does it make a difference in my code/project?
    No. But, don't forget to set the correct hostname/ip where mysql server is installed.

  11. The following user says thank you to saa7_go for this useful post:

    babygal (12th August 2010)

  12. #29
    Join Date
    Apr 2010
    Location
    Singapore
    Posts
    156
    Thanks
    47
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMYSQL database driver installation files

    Yayyy..Happy news ...it works ..my program can now connect to the mysql database on another server.
    Thanks a million. and thanks for the patience replying my queries. Thanks!!!!

Similar Threads

  1. Help with QMYSQL driver for QT 4.4.0: driver not loaded
    By khikho in forum Installation and Deployment
    Replies: 4
    Last Post: 1st April 2011, 15:00
  2. QMYSQL driver not loaded
    By cydside in forum Qt Programming
    Replies: 4
    Last Post: 31st March 2010, 02:18
  3. QMYSQL driver
    By pcaeiro in forum Qt Programming
    Replies: 2
    Last Post: 3rd September 2009, 14:35
  4. QMYSQL driver not loaded
    By sepehr in forum Qt Programming
    Replies: 12
    Last Post: 11th January 2009, 20:15
  5. QMYSQL driver
    By Fastman in forum Installation and Deployment
    Replies: 2
    Last Post: 26th October 2007, 08:14

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.