# SQL

**URL:** <https://discussions.unity.com/t/sql/396120>\
**Category:** News & General Discussion\
**Created:** [August 7, 2009, 9:35pm UTC](https://discussions.unity.com/t/sql/396120 "2009-08-07T21:35:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sammual](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sammual](https://discussions.unity.com/u/Sammual)\
**Post date:** [August 7, 2009, 9:35pm UTC](https://discussions.unity.com/t/sql/396120/1 "2009-08-07T21:35:05Z")

</div>

Hey all,  
Has anyone gotten a standalone Unity app to work with MySQL or SQLight in both Vista and XP?

Thanks,  
Sammual

---

<div class="post-metadata">

**Author:** ![anon\_63089187](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@anon\_63089187](https://discussions.unity.com/u/anon_63089187)\
**Post date:** [August 8, 2009, 3:41am UTC](https://discussions.unity.com/t/sql/396120/2 "2009-08-08T03:41:47Z")

</div>

Yes, but you need to add the sqlite3.dll to the same folder as the compiled .exe. For some reason the Mono version does not work/is not included in the Windows builds.

---

<div class="post-metadata">

**Author:** ![anon\_89678146](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@anon\_89678146](https://discussions.unity.com/u/anon_89678146)\
**Post date:** [August 8, 2009, 5:00am UTC](https://discussions.unity.com/t/sql/396120/3 "2009-08-08T05:00:57Z")

</div>

Yes absolutely Mysql works in all windows builds. See the high score script on the Wiki.

And I might add it works very well.

---

<div class="post-metadata">

**Author:** ![Quietus2](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/quietus2/32/444325_2.png) [@Quietus2](https://discussions.unity.com/u/Quietus2)\
**Post date:** [August 8, 2009, 8:17am UTC](https://discussions.unity.com/t/sql/396120/4 "2009-08-08T08:17:02Z")

</div>

> [@""](#):
>
> Yes absolutely Mysql works in all windows builds. See the high score script on the Wiki.
> 
> And I might add it works very well.

He’s asking about a local database, not one that’s accessed through PhP.

---

<div class="post-metadata">

**Author:** ![Dreamora](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/dreamora/32/91058_2.png) [@Dreamora](https://discussions.unity.com/u/Dreamora)\
**Post date:** [August 9, 2009, 6:28am UTC](https://discussions.unity.com/t/sql/396120/5 "2009-08-09T06:28:50Z")

</div>

you don’t need PHP to access MySQL / SQLLite.

As for the access: as long as MySQL is \< 5.1, just ensure to drop in the right dll, otherwise you will potentially have problems. if you are in the unpleasant situation of having a MySQL 5.1 installation you will likely need more than that, as they didn’t feel like following base standards like not totally break the stuff during a minor update (5.0.x → 5.1.x). 5.1 is incompatible to 5.x / 4.x build stuff

---

<div class="post-metadata">

**Author:** ![Sammual](https://avatars.discourse-cdn.com/v4/letter/s/b9bd4f/32.png) [@Sammual](https://discussions.unity.com/u/Sammual)\
**Post date:** [September 24, 2009, 5:55pm UTC](https://discussions.unity.com/t/sql/396120/6 "2009-09-24T17:55:45Z")

</div>

> [@""](#):
>
> you don’t need PHP to access MySQL / SQLLite.
> 
> As for the access: as long as MySQL is \< 5.1, just ensure to drop in the right dll, otherwise you will potentially have problems. if you are in the unpleasant situation of having a MySQL 5.1 installation you will likely need more than that, as they didn’t feel like following base standards like not totally break the stuff during a minor update (5.0.x → 5.1.x). 5.1 is incompatible to 5.x / 4.x build stuff

Good to know.

Assume I know nothing about getting Unity to work with any form of external data. How would I get Unity to display a Dropdown box pulled from a MySQL Table?

Thanks,  
Sammual

P.S. Would you sugest MySQL 4.1 or 5.0?
