# Connect database server

**URL:** <https://discuss.openedx.org/t/connect-database-server/10402>\
**Category:** Development\
**Tags:** devstack, tutor, data\
**Created:** [June 13, 2023, 2:50am UTC](https://discuss.openedx.org/t/connect-database-server/10402 "2023-06-13T02:50:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ng\_c\_S\_n\_Tr\_n](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ng_c_s_n_tr_n/32/5273_2.png) [@Ng\_c\_S\_n\_Tr\_n](https://discuss.openedx.org/u/Ng_c_S_n_Tr_n)\
**Post date:** [June 13, 2023, 2:50am UTC](https://discuss.openedx.org/t/connect-database-server/10402/1 "2023-06-13T02:50:21Z")

</div>

Hello everyone,

I have a MySQL and MongoDB database server, and I’m wondering how I can connect these database servers in tutor and devstack to retrieve data. Can you please guide me on how to achieve this?

---

<div class="post-metadata">

**Author:** ![regis](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/regis/32/2640_2.png) [@regis](https://discuss.openedx.org/u/regis)\
**Post date:** [June 13, 2023, 6:40am UTC](https://discuss.openedx.org/t/connect-database-server/10402/2 "2023-06-13T06:40:42Z")

</div>

To open a MySQL shell, run `tutor local do sqlshell`. There is no similar command for mongodb (yet), but if you are running a vanilla tutor platform, you can run instead `tutor local run mongodb mongo --host=mongodb`.

---

<div class="post-metadata">

**Author:** ![Ng\_c\_S\_n\_Tr\_n](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/ng_c_s_n_tr_n/32/5273_2.png) [@Ng\_c\_S\_n\_Tr\_n](https://discuss.openedx.org/u/Ng_c_S_n_Tr_n)\
**Post date:** [June 13, 2023, 9:02am UTC](https://discuss.openedx.org/t/connect-database-server/10402/3 "2023-06-13T09:02:36Z")

</div>

Hello @regis ,

In the tutor, you can change the MYSQL\_HOST, MYSQL\_ROOT\_USERNAME, and MYSQL\_ROOT\_PASSWORD. However, you cannot change the name of the database. Is there any way to change the name?
