简体   繁体   中英

Microsoft Server 2008 r2 php odbc connection not working

I recently moved my server over to server 2008 r2 from server 2008, and now my php based website cannot connect to the database. The database is a .accdb and worked fine on the old operating system, I set the database as a system dns. My php page is not returning any errors, but it wont connect to the dns. Is there any way i can fix this?

Make sure you install the Access 2010 Database Engine on the server, if the full version (or the runtime) of Access 2007/2010/2013 is not installed on the server, you must install the database engine or you will never be able to open .accdb databases.

Also make sure that your whole environment is set to work in 32 bits, or 64 bits, but not a mix, you can't install the 32bit and 64bit version on the same server.

Easiest is probably to stick to 32bits and make sure your php server is set for 32bits, also make sure that your ODBC DSN is 32bits .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM