Results 1 to 9 of 9

Thread: Accessing xampp mysql database

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Nuremberg, Germany
    Posts
    13
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Accessing xampp mysql database

    Hi folks,

    here is what I want to do:

    I'running an apache mysql server with xampp on a windows vista 32bit machine (would like to do this with linux, but have to do it with vista...) and want to access a database through the QSqlTableModel in my xampp/mysql directory.
    The dev packs(lib and header) for mysql is installed.

    Qt Version is 4.4.3 and i tried to install the mysql plugin with the following command in the Qt command prompt: "c:\Qt\4.4.3\src\plugins\sqldrivers\mysql>qmak e "INCLUDEPATH+=C:\xampp\MySQL\incl
    ude" "LIBS+=C:\xampp\MySQL\lib\opt\libmysql.lib" mysql.pro"
    This command works, but when i do a "make" afterwards, i get lots of errors with 'undefined references to 'mysql_query@8'' and exit status 1.

    Helpful:
    http://doc.trolltech.com/4.4/sql-dri...gin-on-windows and
    http://wiki.qtcentre.org/index.php?t...ws_using_MinGW

    Installing latest mingw and using reimp should work.

    What did i do wrong?
    Does the mysql server has to be running when installing? - i guess no -
    Is the process for installing the mysql plugin similiar for Qt4.5?
    Do I need to have the mysql running as a service in my xampp control center, when I want to access the database?
    Has anybody experience with this issue?

    Any help would be a peach

    Best Regards
    --synack
    Last edited by synack; 9th March 2009 at 12:31. Reason: spelling

Similar Threads

  1. Putting and getting images from MySQL database?
    By allensr in forum Qt Programming
    Replies: 2
    Last Post: 13th May 2007, 21:47
  2. Qt and MySQL Database Connection
    By shamik in forum Qt Programming
    Replies: 41
    Last Post: 6th October 2006, 12:48
  3. Replies: 7
    Last Post: 12th August 2006, 15:11
  4. Issues regarding QMySql drivers and mysql database
    By bera82 in forum Qt Programming
    Replies: 2
    Last Post: 10th August 2006, 17:50
  5. Replies: 8
    Last Post: 7th March 2006, 13:40

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
  •  
Qt is a trademark of The Qt Company.