Revision #99 has been created by rackycz on Aug 14, 2022, 7:43:02 PM with the memo:
Microsoft Access MDB
« previous (#98) next (#100) »
Changes
Title
unchanged
Yii v2 snippet guide III
Category
unchanged
Tutorials
Yii version
unchanged
2.0
Tags
unchanged
tutorial,yii2,beginer
Content
changed
[...]
**Microsoft Access MDB**
---
Under Linux I haven't suceeded, but when I install a web server on Windows (for example XAMPP Server) I am able to install "Microsoft Access Database Engine 2016 Redistributable" and use *.mdb file.
So first of all you should install the web server with PHP and you should know wheather you are installing 64 or 32bit versions. Probably 64. Then go to page [Microsoft Access Database Engine 2016 Redistributable](https://www.microsoft.com/en-us/download/details.aspx?id=54920) (or find newer isf available) and install corresponding package (32 vs 64bit)
Then you will be able to use following DSN string in DB connection. (The code belongs to file config/db.php):
```
<?php[...]