Results 1 to 9 of 9

Thread: QMYSQL3: Unable to bind outvalues

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2009
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMYSQL3: Unable to bind outvalues

    The FIX was to move "c:\Program Files\PHP" to the END of the system path, after "MySQL\Bin"

    The PHP dir had an older copy of libmysql.dll (installed by PHP)
    (I suspect that this was the problem....)

    I should know more but I don't. I'm embarrassed to ask... but what is the mechanism by which things link together? It all seems like magic to me...

    And after using tools that I am not familiar with (reimp, dlltool, qmake, ming32-make) to create .a files (of which I only seem to have the debug(?) versions....) and moving things around... I am just a little confused... and I suspect a few other newbies could get into a similar situation... and have no idea how to get out of it.

    To get into trouble... all you have to do is install PHP 5.2.8 and MySQL 5.1.31, and then install QT 4.5.1.

    The answer is that.... you don't just have to have mysql\bin in the path... it has to be before the \php directory...

    I would just like some confirmation that my analysis is correct. I would also like the next newbie who has such a problem to be able to find a relatively clear description\discussion of what the problem (and at least one possible solution) may be.

    What do you think?

  2. #2
    Join Date
    May 2009
    Posts
    6
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QMYSQL3: Unable to bind outvalues

    And it is never easy.... maybe my solution was wrong... because my PHP scripts now don't run... probably because they are now finding the wrong DLL....

    I tried to find a PHP 5.2.8 / MySQL 5.1.31 version of php_mysqli.dll but couldn't find one.

    In the end I downloaded the zip file of php-5.2.9-2-Win32.zip... and it still wouldn't work...

    ...so I replaced the downloaded php\ext files with PHP-5.2.9+_MySQL-5.1.30+.zip files....

    And copied the libmysql.dll from the Mysql\Bin dir to the PHP dir...

    ...and then had to REBOOT.... and now everything works... and I suspect that the path order (see a previous post) would no longer matter...

    Problem is, despite now having everything working, I am still not sure if I've just been chasing my tail.... did I miss the obvious and easy fix?

  3. #3
    Join Date
    Sep 2007
    Location
    Sant'Elpidio a Mare, Italy
    Posts
    194
    Qt products
    Qt3 Qt4
    Platforms
    Windows
    Thanks
    54
    Thanked 2 Times in 2 Posts

    Default Just a reference

    Since we solved an analog problem, I want to put it here the thread as reference, maybe someone else is passing here through trying to find a solution for this frustrating problem.

    This is the thread: http://www.qtcentre.org/forum/f-newb...tml#post123213

    HTH
    --
    raccoon29

    "La mia vita finirà quando non vedrò più la gente ridere...non necessariamente alle mie battute "

Similar Threads

  1. How to Compile VTKDesigner2 with Qt?
    By alfredoaal in forum Newbie
    Replies: 0
    Last Post: 5th September 2008, 05:34

Tags for this Thread

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.