note 103354 added to pdo.installation
| From: | dtcwee at hotmail dot com | Date: | Fri, 08 Apr 2011 23:15:52 +0000 |
| Subject: | note 103354 added to pdo.installation | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-178649@lists.php.net to get a copy of this message | ||
You may receive this error when testing a PDO-ODBC connection:
"The specified DSN contains an architecture mismatch between the Driver and Application"
My environment was Windows 7 (64 bit), MySQL ODBC drivers (64 bit), Apache 2.2.17 (32 bit), PHP
5.3.5 (32 bit).
If you are like me, you were testing the PDO-ODBC connection because the native database drivers
were not visible to PHP. Furthermore, the MySQL 32 bit drivers did not work in my environment.
Solution: Your environment has to be 64 bit all the way through.
Install 64 bit versions of Apache and PHP. They are not available from official sources. However,
kind people have compiled some and made them available for download.
As a bonus, the native database drivers suddenly showed up enabled.
----
Server IP: 117.55.229.1
Probable Submitter: 121.45.17.250
----
Manual Page -- http://www.php.net/manual/en/pdo.installation.php
Edit -- https://master.php.net/note/edit/103354
Del: integrated -- https://master.php.net/note/delete/103354/integrated
Del: useless -- https://master.php.net/note/delete/103354/useless
Del: bad code -- https://master.php.net/note/delete/103354/bad+code
Del: spam -- https://master.php.net/note/delete/103354/spam
Del: non-english -- https://master.php.net/note/delete/103354/non-english
Del: in docs -- https://master.php.net/note/delete/103354/in+docs
Del: other reasons-- https://master.php.net/note/delete/103354
Reject -- https://master.php.net/note/reject/103354
Search -- https://master.php.net/manage/user-notes.php