# Does Asterisk 13.10.0 uses MySQL on dialplan

**URL:** <https://community.asterisk.org/t/does-asterisk-13-10-0-uses-mysql-on-dialplan/67708>\
**Category:** Asterisk Support\
**Created:** [August 12, 2016, 9:42am UTC](https://community.asterisk.org/t/does-asterisk-13-10-0-uses-mysql-on-dialplan/67708 "2016-08-12T09:42:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oladapoadebowale](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/oladapoadebowale/32/1813_2.png) [@oladapoadebowale](https://community.asterisk.org/u/oladapoadebowale)\
**Post date:** [August 12, 2016, 9:42am UTC](https://community.asterisk.org/t/does-asterisk-13-10-0-uses-mysql-on-dialplan/67708/1 "2016-08-12T09:42:03Z")

</div>

Hi guys,

I am using Asterisk 13.10.0 but when I tried to connect to my external database I get the error

“No application MySQL for extension mycontextname”.

I am connecting in this line

n,MYSQL(Connect connid serverdatabase ghdghdghx yughdg673 hjdghdsks)

I have been trying to fix this but I am not getting any luck.

---

<div class="post-metadata">

**Author:** ![mjordan](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/mjordan/32/1509_2.png) [@mjordan](https://community.asterisk.org/u/mjordan)\
**Post date:** [August 12, 2016, 11:54am UTC](https://community.asterisk.org/t/does-asterisk-13-10-0-uses-mysql-on-dialplan/67708/2 "2016-08-12T11:54:32Z")

</div>

You need to compile `app_mysql` in the `addons` folder. You can do this by selecting it in the `Add-Ons` category in `menuselect`.

While you can use `app_mysql`, you should note that the preferred mechanism for querying an external database is through `func_odbc`.

---

<div class="post-metadata">

**Author:** ![oladapoadebowale](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/oladapoadebowale/32/1813_2.png) [@oladapoadebowale](https://community.asterisk.org/u/oladapoadebowale)\
**Post date:** [August 12, 2016, 12:15pm UTC](https://community.asterisk.org/t/does-asterisk-13-10-0-uses-mysql-on-dialplan/67708/3 "2016-08-12T12:15:14Z")

</div>

Okay, thank you @mjordan
