RMySQL and Shinyapps

63 views
Skip to first unread message

Thisara Watawana

unread,
Jul 15, 2014, 6:07:25 AM7/15/14
to shinyap...@googlegroups.com
I started an app which access my local MySQL database and extract data. When I run the shiny app in the local environment it displays without any error but when I try to deploy the application It shows an error.

So how can I connect shinyapp to the database using RMySQL?   

Chad Barraford

unread,
Jul 15, 2014, 8:18:07 AM7/15/14
to Thisara Watawana, shinyap...@googlegroups.com
Hello, is your mysql db available outside your local environment? Does it have an IP address or dns address?


On Tue, Jul 15, 2014 at 6:07 AM, Thisara Watawana <thi...@gmail.com> wrote:
I started an app which access my local MySQL database and extract data. When I run the shiny app in the local environment it displays without any error but when I try to deploy the application It shows an error.

So how can I connect shinyapp to the database using RMySQL?   

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shinyapps-users/b8e1fba5-058e-40a7-a1eb-1acd8cc8e58c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andy Kipp

unread,
Jul 15, 2014, 8:27:33 AM7/15/14
to Thisara Watawana, shinyap...@googlegroups.com
HI,

Can you send along the URL and the error message you are seeing? It's not possible for us to diagnose the problem without any information.

Thanks
-Andy


On Tue, Jul 15, 2014 at 6:07 AM, Thisara Watawana <thi...@gmail.com> wrote:
I started an app which access my local MySQL database and extract data. When I run the shiny app in the local environment it displays without any error but when I try to deploy the application It shows an error.

So how can I connect shinyapp to the database using RMySQL?   

--

Thisara Watawana

unread,
Jul 15, 2014, 9:52:12 PM7/15/14
to shinyap...@googlegroups.com
Actually it's a locally installed MySQL server. I tried remote server as well by putting the IP address as host in dbConnect(), but it did not work. So my question  is it possible to connect to a database using RMySQL and  shinyapp? 

Tareef Kawaf

unread,
Jul 16, 2014, 12:53:59 AM7/16/14
to Thisara Watawana, shinyap...@googlegroups.com
It is absolutely possible, but as Chad was hinting at, your database has to be accessible from outside your environment.  When an app is pushed to the cloud, it will no longer be running on your machine, which means that it will need a way to get to the database.  Typically, that would mean that you need to have your database somewhere that is accessible over the internet.  

Hope this helps.
-Tareef


On Tue, Jul 15, 2014 at 9:52 PM, Thisara Watawana <thi...@gmail.com> wrote:
Actually it's a locally installed MySQL server. I tried remote server as well by putting the IP address as host in dbConnect(), but it did not work. So my question  is it possible to connect to a database using RMySQL and  shinyapp? 

--
You received this message because you are subscribed to the Google Groups "ShinyApps Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shinyapps-use...@googlegroups.com.
To post to this group, send email to shinyap...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages