PDO异常:找不到驱动程序(PHP到MS Access)

时间:2022-09-19 14:46:07

I am trying to connect to a MS Access Db that I have made from my apache server using PHP. I keep coming up with the error "could not find driver". I have searched through just about every web page on the internet and have found nothing of importance. I have undocumented the parts of the php.ini file to allow the odbc drivers to work. I also have tried to list all of the working drivers using the PDO::getAvailableDrivers() code yet nothing shows up no matter how many drivers I undocument from the php.ini file. I've created the DNS connection and linked it to the database yet I'm not sure how to connect to it.

我正在尝试连接到我使用PHP从我的apache服务器制作的MS Access Db。我一直想出错误“找不到驱动程序”。我已经搜索了互联网上的每一个网页,并没有发现任何重要的东西。我没有记录php.ini文件的部分,以允许odbc驱动程序工作。我也尝试使用PDO :: getAvailableDrivers()代码列出所有正在运行的驱动程序,但无论我从php.ini文件中删除了多少驱动程序,都没有显示任何内容。我已经创建了DNS连接并将其链接到数据库但我不确定如何连接到它。

Any help would be greatly appreciated.

任何帮助将不胜感激。

1 个解决方案

#1


0  

For everyone else that needs an answer to this:

对于其他需要答案的人:

MS Access has stopped updating and hosting their odbc connection to php in 2010 (approximately). It will still work if you make sure you're using a 32-bit system. I'm now using 32-bit Apache and PHP. It works flawlessly now.

MS Access已于2010年停止更新并托管与php的odbc连接(大约)。如果您确定使用的是32位系统,它仍然可以工作。我现在使用的是32位Apache和PHP。它现在完美无瑕。

#1


0  

For everyone else that needs an answer to this:

对于其他需要答案的人:

MS Access has stopped updating and hosting their odbc connection to php in 2010 (approximately). It will still work if you make sure you're using a 32-bit system. I'm now using 32-bit Apache and PHP. It works flawlessly now.

MS Access已于2010年停止更新并托管与php的odbc连接(大约)。如果您确定使用的是32位系统,它仍然可以工作。我现在使用的是32位Apache和PHP。它现在完美无瑕。