# Facing error while creating OAuth Adaptor for PDO

**URL:** <https://discourse.laminas.dev/t/facing-error-while-creating-oauth-adaptor-for-pdo/2770>\
**Category:** API Tools\
**Created:** [February 12, 2022, 3:18pm UTC](https://discourse.laminas.dev/t/facing-error-while-creating-oauth-adaptor-for-pdo/2770 "2022-02-12T15:18:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sanjivsharmalv](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/sanjivsharmalv/32/1164_2.png) [@sanjivsharmalv](https://discourse.laminas.dev/u/sanjivsharmalv)\
**Post date:** [February 12, 2022, 3:18pm UTC](https://discourse.laminas.dev/t/facing-error-while-creating-oauth-adaptor-for-pdo/2770/1 "2022-02-12T15:18:49Z")

</div>

Facing the error : “Invalid DSN”, please advise what is wrong with DSN:

 ![Screenshot from 2022-02-12 17-22-09](https://canada1.discourse-cdn.com/flex032/uploads/zendframework/original/2X/5/5be4b41c3b23c47989c20c1a0d61a495fad18110.png)

---

<div class="post-metadata">

**Author:** ![makxk](https://yyz2.discourse-cdn.com/flex032/user_avatar/discourse.laminas.dev/makxk/32/1266_2.png) [@makxk](https://discourse.laminas.dev/u/makxk)\
**Post date:** [February 28, 2022, 9:16am UTC](https://discourse.laminas.dev/t/facing-error-while-creating-oauth-adaptor-for-pdo/2770/2 "2022-02-28T09:16:40Z")

</div>

~~Try beginning the DSN with `sqlite://` (double slashes instead of single slashes)?~~  
Apparently, the path has to look like so on linux:

```auto
sqlite:////full/unix/path/to/file.db

```

and like so on windows

```auto
sqlite:///c:/full/windows/path/to/file.db?mode=0666

```

Hope that helps 🙂

([Source](https://stackoverflow.com/a/60474049))
