# Hi,   I am trying to use a MySQL database cre...

**URL:** <https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595>\
**Category:** AppSheet Q&A\
**Tags:** databases\
**Created:** [October 1, 2018, 12:00am UTC](https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595 "2018-10-01T00:00:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 1, 2018, 12:00am UTC](https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595/1 "2018-10-01T00:00:00Z")

</div>

Hi,

I am trying to use a MySQL database created with phpMyadmin, I have this error message when I try to connect:

Failed to establish connection. Details: One or more SQL errors has been encountered: Unable to connect to the MySQL database. You might not have the required permission or might be blocked by a firewall.

The user created for this has all privileges. Does anybody has an idea of where could be the problem?

Maybe I need to whitelist an IP to grant the access in my server?

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 7, 2018, 11:15am UTC](https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595/2 "2018-10-07T11:15:33Z")

</div>

Check this article… [help.appsheet.com](http://help.appsheet.com) - Using Data from MySQL Using Data from MySQL [help.appsheet.com](http://help.appsheet.com)

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 7, 2018, 11:15am UTC](https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595/3 "2018-10-07T11:15:33Z")

</div>

@Aleksi\_Alkio Thanks a lot! Translate

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 7, 2018, 11:15am UTC](https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595/4 "2018-10-07T11:15:33Z")

</div>

Is this case solved now? Was the reason missing IP addresses?

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 7, 2018, 11:15am UTC](https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595/5 "2018-10-07T11:15:33Z")

</div>

@Aleksi\_Alkio it is not solved yet but I assume that I was missing this information. It should work, I will comment when it is ok.

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 7, 2018, 11:15am UTC](https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595/6 "2018-10-07T11:15:33Z")

</div>

@Aleksi\_Alkio Ok, it does not work. I think I have been trying to do something not possible: the MySQL database is in a dedicated server this is why it does not work right?

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 7, 2018, 11:15am UTC](https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595/7 "2018-10-07T11:15:33Z")

</div>

Let’s see what our SQL expert will think about this. Adding @Harry

---

<div class="post-metadata">

**Author:** ![anonymous8](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@anonymous8](https://discuss.google.dev/u/anonymous8)\
**Post date:** [October 7, 2018, 11:15am UTC](https://discuss.google.dev/t/hi-i-am-trying-to-use-a-mysql-database-cre/72595/8 "2018-10-07T11:15:33Z")

</div>

@Aleksi\_Alkio Hi, finally I go for a Google Cloud server. Problem was IP was not public. Beter I go for a google cloud server which will have necessary security.
