# Django ORM requests with an external Mysql DB

**URL:** <https://forum.djangoproject.com/t/django-orm-requests-with-an-external-mysql-db/923>\
**Category:** Using Django\
**Created:** [January 22, 2020, 10:23pm UTC](https://forum.djangoproject.com/t/django-orm-requests-with-an-external-mysql-db/923 "2020-01-22T22:23:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![master4](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/master4/32/569_2.png) [@master4](https://forum.djangoproject.com/u/master4)\
**Post date:** [January 22, 2020, 10:23pm UTC](https://forum.djangoproject.com/t/django-orm-requests-with-an-external-mysql-db/923/1 "2020-01-22T22:23:52Z")

</div>

Hi,

I would like to know if I can request a Mysql database created before I create my Django project with Django ORM. For instance, is it possible to run that request with that database : **User.objects.all()**. In this case, “User” is a table of my database.

Thanks

---

<div class="post-metadata">

**Author:** ![JonasKs](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/jonasks/32/557_2.png) [@JonasKs](https://forum.djangoproject.com/u/JonasKs)\
**Post date:** [January 23, 2020, 7:22am UTC](https://forum.djangoproject.com/t/django-orm-requests-with-an-external-mysql-db/923/2 "2020-01-23T07:22:41Z")

</div>

You can use a MySQL database, yes.  
See [this link](https://docs.djangoproject.com/en/3.0/ref/databases/) for supported databases.

Be aware that MySQL databases often are case insensitive, so you might have to ensure you have a `CS` collation or using a `_bin` Character set. See more [here](https://docs.djangoproject.com/en/3.0/ref/databases/#collation-settings).

---

<div class="post-metadata">

**Author:** ![master4](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/master4/32/569_2.png) [@master4](https://forum.djangoproject.com/u/master4)\
**Post date:** [January 23, 2020, 8:44am UTC](https://forum.djangoproject.com/t/django-orm-requests-with-an-external-mysql-db/923/3 "2020-01-23T08:44:34Z")

</div>

Thank you @JonasKs. It’s working
