Xampp 1.7 & PDO

Je suis un inconditionnel de Xampp (kit d’installation d’Apache qui contient MySQL, PHP et Perl) sous windows.

Lors de l’installation de la dernière version 1.7.0 j’ai été confronté à un problème lors de l’utilisation de Magento et Symfony.

En effet, ils utilisent tous les deux la couche d’accès aux données PDO et la dll livrée de base avec Xampp libmysql.dll provoque un plantage.

Je vous propose de télécharger libmysql.dll (800 ko) sur mon site libmysql_dll.zip.

Une fois téléchargé, dézippée, récupérer le fichier libmysql.dll que vous allez copier à 3 endroits :

- dans xampp\apache\bin

- dans xampp\php

- et dans windows\system32

ps : avant toute copie renommer le fichier libmysql.dll présent dans chaque répertoire en libmysql.dll_ ce qui vous permettra le cas échéant de revenir en arrière.Redémarrer XAMPP, Apache et MySql.

Vos applications utilisant PDO devrait maintenant parfaitement fonctionner !!!


Tags: |||

10 réponses à “Xampp 1.7 & PDO”

  1. Dvir dit :

    Hello , can you please translate this Article to English?
    I try reading it with
    translate.google.com/translate?prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fwww.netfulvpc.fr%2Fphptechnoframe%2Ftrucs-et-astuces%2Fxampp-17&sl=auto&tl=en&history_state0=

    but it’s not good…
    Is this Article solve the PDO driver problem ?

  2. IT solves the PDO driver problem…!!!

    Hello Dvir try to use REVERSO, it’s better than Google Translate, it gives :

    I am an ardent supporter of Xampp (kit of installation of Apache which contains MySQL, PHP and Perl) under Windows.

    During the installation of the last version 1.7.0, I was confronted with a problem during the use of Magento and Symfony.

    Indeed, they use both the access layer of PDO and the dll delivered with Xampp libmysql.dll provokes a crash.

    I suggest you to download libmysql.dll (800 Kb) on my site libmysql_dll.zip.

    Once downloaded, unzipped, copy the libmysql.dll file in 3 directories :

    - In xampp\apache\bin
    - In xampp\php
    - And in windows\system32

    Ps: before any copy rename the libmysql.dll file in every directory by libmysql.dll_ what will allow you if necessary to reverse back. Restart XAMPP, Apache and MySql.

    Your PDO’s applications should work fine by now!!!

  3. Schultz dit :

    Effectivement ça résoud bien le problème !
    Quel est le défaut de la dll d’origine ?

  4. Je ne sais pas quel est le défaut de la dll d’origine !!!

  5. GRANDGIRARD dit :

    Un énorme merci pour ce post. Ca résout parfaitement mon problème (ça faisait 4 heures que je cherchais).
    J’aimerais bien tout de même comprendre le fond du pb.

  6. J’aimerai moi aussi connaître pourquoi Xampp a été livré avec la mauvaise DLL…

  7. Ben dit :

    Merci ça marche nickel !

  8. Yann dit :

    Bonjour je voulais savoir si tu avais aussi remplacé la dll « php_pdo_mysql.dll »
    de Xampp avec la version 1.7 comme pour les versions précédentes lors de l’installation de Magento ?
    Ou est ce que ce problème a été corrigé.

  9. Non Yann, j’ai juste mis à jour libmysql.dll, je n’ai touché à rien d’autre ;-)

  10. Adolfo Abegg dit :

    Merci!
    I followed these steps and now my symfony app is working again ;)

Laisser un commentaire