PHP ODBC connect() to Access - architecture mismatch

前端 未结 2 1105
走了就别回头了
走了就别回头了 2021-02-13 18:06

I have googled for hours now.

I have read countless articles such as: Is there a Windows 7 ODBC driver for Access?

I have tried using both the ODBC admin - and h

2条回答
  •  孤街浪徒
    2021-02-13 18:47

    You are attempting to use a 64 bit application with a 32 bit ODBC driver or vice versa. Look at ODBC on 64-bit Windows Platforms.

    You need to determine whether your PHP application is 64 bit or 32 bit first.

    Then once you've ascertained that you need to start the correct ODBC administrator - there are 2 of them, one for 32 bit and one for 64 bit. The 64 bit ODBC administrator is in Adminstrative tools, control panel and the 32 bit one is in %windir\syswow64\odbcad32.exe.

    Once you've matched your application architecture to the right ODBC administrator, you need to create the system DSN. If you cannot find the MS Access driver in the administrator, you'll need to download one for that architecture. I'm not sure if there is a 64 bit MS Access ODBC driver; if there isn't, you'll have to change your application architecture.

    The article I referenced has more information.

提交回复
热议问题